Merge pull request #237 from tdfischer/tdfischer/faster-timeout-test
test: db: fix test to have a smaller timeout for when it runs on faster ...
This commit is contained in:
commit
0c26e76b28
@ -7554,7 +7554,7 @@ TEST(DBTest, SimpleWriteTimeoutTest) {
|
|||||||
ASSERT_OK(Put(Key(2), Key(2) + std::string(100000, 'v'), write_opt));
|
ASSERT_OK(Put(Key(2), Key(2) + std::string(100000, 'v'), write_opt));
|
||||||
// As the only two write buffers are full in this moment, the third
|
// As the only two write buffers are full in this moment, the third
|
||||||
// Put is expected to be timed-out.
|
// Put is expected to be timed-out.
|
||||||
write_opt.timeout_hint_us = 300;
|
write_opt.timeout_hint_us = 50;
|
||||||
ASSERT_TRUE(
|
ASSERT_TRUE(
|
||||||
Put(Key(3), Key(3) + std::string(100000, 'v'), write_opt).IsTimedOut());
|
Put(Key(3), Key(3) + std::string(100000, 'v'), write_opt).IsTimedOut());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user