Fix non-deterministic failure in backupable_db_test

Summary: FailOverwritingBackups has unexpected results when auto-compaction runs.

Test Plan: ran test a bunch of times

Reviewers: IslamAbdelRahman, igor

Reviewed By: igor

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D47181
main
agiardullo 9 years ago
parent 014fd55adc
commit c7fba80291
  1. 2
      utilities/backupable/backupable_db_test.cc

@ -961,6 +961,8 @@ TEST_F(BackupableDBTest, OnlineIntegrationTest) {
TEST_F(BackupableDBTest, FailOverwritingBackups) {
options_.write_buffer_size = 1024 * 1024 * 1024; // 1GB
options_.disable_auto_compactions = true;
// create backups 1, 2, 3, 4, 5
OpenDBAndBackupEngine(true);
for (int i = 0; i < 5; ++i) {

Loading…
Cancel
Save