diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2019-10-07 16:30:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-07 16:30:27 +0200 |
commit | 5bedd856c54812faa780d52236c1cf6394ed3fd9 (patch) | |
tree | ecc9fd6042a300f78265e63125eadc7e80f0eca1 | |
parent | 00758d2e1eabf7791f447010f722487fb5d51e53 (diff) | |
parent | 124aa49281f973875f3ad5094407b7794bbf6597 (diff) |
Merge pull request #10907 from vespa-engine/toregge/slightly-reduce-timing-sensitivity-of-feedview-unit-test
Reduce timing sensitivity of feedview unit test.
-rw-r--r-- | searchcore/src/tests/proton/documentdb/feedview/feedview_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/searchcore/src/tests/proton/documentdb/feedview/feedview_test.cpp b/searchcore/src/tests/proton/documentdb/feedview/feedview_test.cpp index 144f4ca4ff7..2bb17c54367 100644 --- a/searchcore/src/tests/proton/documentdb/feedview/feedview_test.cpp +++ b/searchcore/src/tests/proton/documentdb/feedview/feedview_test.cpp @@ -1232,13 +1232,13 @@ TEST_F("require that commit is not called when inside a commit interval", TEST_F("require that commit is called when crossing a commit interval", SearchableFeedViewFixture(SHORT_DELAY)) { - FastOS_Thread::Sleep(SHORT_DELAY.ms() + 10); + FastOS_Thread::Sleep(SHORT_DELAY.ms() + 100); DocumentContext dc = f.doc1(); f.putAndWait(dc); EXPECT_EQUAL(1u, f.miw._commitCount); EXPECT_EQUAL(1u, f.maw._commitCount); EXPECT_EQUAL(2u, f._docIdLimit.get()); - FastOS_Thread::Sleep(SHORT_DELAY.ms() + 10); + FastOS_Thread::Sleep(SHORT_DELAY.ms() + 100); f.removeAndWait(dc); EXPECT_EQUAL(2u, f.miw._commitCount); EXPECT_EQUAL(2u, f.maw._commitCount); @@ -1257,13 +1257,13 @@ TEST_F("require that commit is not implicitly called after handover to maintenan SearchableFeedViewFixture(SHORT_DELAY)) { f._commitTimeTracker.setReplayDone(); - FastOS_Thread::Sleep(SHORT_DELAY.ms() + 10); + FastOS_Thread::Sleep(SHORT_DELAY.ms() + 100); DocumentContext dc = f.doc1(); f.putAndWait(dc); EXPECT_EQUAL(0u, f.miw._commitCount); EXPECT_EQUAL(0u, f.maw._commitCount); EXPECT_EQUAL(0u, f._docIdLimit.get()); - FastOS_Thread::Sleep(SHORT_DELAY.ms() + 10); + FastOS_Thread::Sleep(SHORT_DELAY.ms() + 100); f.removeAndWait(dc); EXPECT_EQUAL(0u, f.miw._commitCount); EXPECT_EQUAL(0u, f.maw._commitCount); |