修改codecheck

Signed-off-by: ljy <liujiaying7@huawei.com>
This commit is contained in:
ljy 2024-02-06 19:10:33 +08:00
parent dc61f1baff
commit e404d593d1
2 changed files with 5 additions and 4 deletions

View File

@ -128,8 +128,8 @@ ohos_unittest("StoreTest") {
module_out_path = module_output_path
sources = [
"store_test.cpp",
"../../service/rdb/rdb_query.cpp",
"store_test.cpp",
]
configs = [ ":module_private_config" ]
@ -259,10 +259,10 @@ group("unittest") {
":GeneralStoreTest",
":MetaDataManagerTest",
":SerializableTest",
":UtilsTest",
":StoreTest",
":StoreMetaDataLocalTest",
":StoreTest",
":SubscriptionTest",
":UtilsTest",
]
}
###############################################################################

View File

@ -41,7 +41,8 @@ public:
void TearDown(){};
static uint64_t GetCurrentTime()
{
return static_cast<uint64_t>(std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::system_clock::now().time_since_epoch()).count());
return static_cast<uint64_t>(std::chrono::duration_cast<std::chrono::microseconds>
(std::chrono::system_clock::now().time_since_epoch()).count());
}
int intervalTime = 100 * 1000;
int testNum = 10;