File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 15
15
#include " dataman/RowSetReader.h"
16
16
#include " dataman/RowReader.h"
17
17
18
+ DECLARE_int32 (max_handlers_per_req);
19
+
18
20
namespace nebula {
19
21
namespace storage {
20
22
@@ -121,10 +123,11 @@ void fetchVertices(kvstore::KVStore* kv,
121
123
}
122
124
123
125
TEST (VertexCacheTest, SimpleTest) {
126
+ FLAGS_max_handlers_per_req = 1 ;
124
127
fs::TempDir rootPath (" /tmp/VertexCacheTest.XXXXXX" );
125
128
std::unique_ptr<kvstore::KVStore> kv = TestUtils::initKV (rootPath.path ());
126
129
auto schemaMan = TestUtils::mockSchemaMan ();
127
- auto executor = std::make_unique<folly::CPUThreadPoolExecutor>(3 );
130
+ auto executor = std::make_unique<folly::CPUThreadPoolExecutor>(1 );
128
131
prepareData (kv.get ());
129
132
VertexCache cache (1000 , 0 );
130
133
You can’t perform that action at this time.
0 commit comments