Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5d511a9

Browse files
authored
Fix failed vertex_cache_test (vesoft-inc#1420)
* Fix failed vertex_cache_test * Address @laura-ding's comments
1 parent ffcd36f commit 5d511a9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/storage/test/VertexCacheTest.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#include "dataman/RowSetReader.h"
1616
#include "dataman/RowReader.h"
1717

18+
DECLARE_int32(max_handlers_per_req);
19+
1820
namespace nebula {
1921
namespace storage {
2022

@@ -121,10 +123,11 @@ void fetchVertices(kvstore::KVStore* kv,
121123
}
122124

123125
TEST(VertexCacheTest, SimpleTest) {
126+
FLAGS_max_handlers_per_req = 1;
124127
fs::TempDir rootPath("/tmp/VertexCacheTest.XXXXXX");
125128
std::unique_ptr<kvstore::KVStore> kv = TestUtils::initKV(rootPath.path());
126129
auto schemaMan = TestUtils::mockSchemaMan();
127-
auto executor = std::make_unique<folly::CPUThreadPoolExecutor>(3);
130+
auto executor = std::make_unique<folly::CPUThreadPoolExecutor>(1);
128131
prepareData(kv.get());
129132
VertexCache cache(1000, 0);
130133

0 commit comments

Comments
 (0)