Fix benchmark tests

This commit is contained in:
Ken Hibino
2020-01-18 10:17:39 -08:00
parent c29200b1fc
commit 207a6d2d1a
5 changed files with 28 additions and 13 deletions

View File

@@ -39,7 +39,7 @@ func TestSyncer(t *testing.T) {
}
}
time.Sleep(interval) // ensure that syncer runs at least once
time.Sleep(2 * interval) // ensure that syncer runs at least once
gotInProgress := h.GetInProgressMessages(t, r)
if l := len(gotInProgress); l != 0 {
@@ -78,7 +78,7 @@ func TestSyncerRetry(t *testing.T) {
}
}
time.Sleep(interval) // ensure that syncer runs at least once
time.Sleep(2 * interval) // ensure that syncer runs at least once
// Sanity check to ensure that message was not successfully deleted
// from in-progress list.
@@ -90,7 +90,7 @@ func TestSyncerRetry(t *testing.T) {
// simualate failover.
rdbClient = rdb.NewRDB(goodClient)
time.Sleep(interval) // ensure that syncer runs at least once
time.Sleep(2 * interval) // ensure that syncer runs at least once
gotInProgress = h.GetInProgressMessages(t, goodClient)
if l := len(gotInProgress); l != 0 {