!6235 kv_adapter UT使用独立的数据库

Merge pull request !6235 from wzhhhh/master
This commit is contained in:
openharmony_ci 2024-05-25 01:50:07 +00:00 committed by Gitee
commit 87e23c3ccd
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ namespace OHOS {
namespace {
const std::string APP_ID = "dsoftbus";
const std::string STORE_ID = "dsoftbus_kv_db";
const std::string STORE_ID = "dsoftbus_kv_db_test";
shared_ptr<KVAdapter> kvStore = nullptr;
constexpr int32_t MAX_STRING_LEN = 4096;
constexpr int32_t MAX_MAP_SIZE = 10000;

View File

@ -29,9 +29,9 @@ namespace {
constexpr int32_t MAX_STRING_LEN = 4096;
constexpr int32_t MIN_STRING_LEN = 1;
constexpr int32_t APP_ID_LEN = 8;
constexpr int32_t STORE_ID_LEN = 14;
constexpr int32_t STORE_ID_LEN = 19;
const std::string APP_ID = "dsoftbus";
const std::string STORE_ID = "dsoftbus_kv_db";
const std::string STORE_ID = "dsoftbus_kv_db_test";
}
static int32_t g_dbId = 1;
class KVAdapterWrapperTest : public testing::Test {