diff options
author | Tor Brede Vekterli <vekterli@oath.com> | 2018-04-27 12:33:12 +0000 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@oath.com> | 2018-04-27 12:43:26 +0000 |
commit | 943cf25b0fd2bd76b3ac4a1236655446a2c9f4cd (patch) | |
tree | 62f7f36f7fd7a3e85bc38e07f70f94d14fceb009 /storage/src/tests/persistence/filestorage/sanitycheckeddeletetest.cpp | |
parent | d83814043998817d404b922e3050ce2006e8ec19 (diff) |
Ensure commands are processed before shutting down persistence threads
Prevents race condition where test cleanup closes persistence threads while
there are still enqueued operations. Normally the content layer shall ensure
that all enqueued operations are aborted before reaching this step, but this
does not take place in the simplified testing setup.
Diffstat (limited to 'storage/src/tests/persistence/filestorage/sanitycheckeddeletetest.cpp')
-rw-r--r-- | storage/src/tests/persistence/filestorage/sanitycheckeddeletetest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/src/tests/persistence/filestorage/sanitycheckeddeletetest.cpp b/storage/src/tests/persistence/filestorage/sanitycheckeddeletetest.cpp index b906c9f67d6..961d2628052 100644 --- a/storage/src/tests/persistence/filestorage/sanitycheckeddeletetest.cpp +++ b/storage/src/tests/persistence/filestorage/sanitycheckeddeletetest.cpp @@ -65,7 +65,7 @@ void SanityCheckedDeleteTest::delete_bucket_fails_when_provider_out_of_sync() { // Send a put to another bucket to serialize the operation (guaranteed // since we only have 1 thread and the delete always has max priority). c.sendPut(syncBucket, DocumentIndex(0), PutTimestamp(1001)); - c.top.waitForMessages(1, MSG_WAIT_TIME); + c.top.waitForMessages(2, MSG_WAIT_TIME); // Should still be able to get identical bucket info for bucket. spi::BucketInfoResult infoResult( _node->getPersistenceProvider().getBucketInfo(spiBucket)); |