Skip to content

Commit a201e32

Browse files
committed
Change lmdb test to prevent tests time out for debug
1 parent b03d18a commit a201e32

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/lmdbxx/lmdb_tests.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,11 @@ TEST(Lmdbxx, HighLoadTest) {
270270
cs::Console::writeLine("Error in database ", e.what());
271271
});
272272

273+
#ifdef NDEBUG
273274
constexpr size_t elementsCount = 50000;
275+
#else
276+
constexpr size_t elementsCount = 1000;
277+
#endif
274278

275279
std::string key = "Key";
276280
std::string value = "Value";

0 commit comments

Comments
 (0)