Only print 'waiting for DD to end...' if test actually waits

This commit is contained in:
tclinken 2019-11-03 16:13:32 -08:00
parent b326d26a47
commit 8f84fbc4b9
1 changed files with 4 additions and 2 deletions

View File

@ -1093,11 +1093,12 @@ ACTOR Future<Void> runTests( Reference<AsyncVar<Optional<struct ClusterControlle
// do we handle a failure here? // do we handle a failure here?
} }
printf("\n%d tests passed; %d tests failed, waiting for DD to end...\n\n", passCount, failCount); printf("\n%d tests passed; %d tests failed.\n", passCount, failCount);
//If the database was deleted during the workload we need to recreate the database //If the database was deleted during the workload we need to recreate the database
if(tests.empty() || useDB) { if(tests.empty() || useDB) {
if(waitForQuiescenceEnd) { if(waitForQuiescenceEnd) {
printf("Waiting for DD to end...\n");
try { try {
wait(quietDatabase(cx, dbInfo, "End", 0, 2e6, 2e6) || wait(quietDatabase(cx, dbInfo, "End", 0, 2e6, 2e6) ||
(databasePingDelay == 0.0 ? Never() (databasePingDelay == 0.0 ? Never()
@ -1108,6 +1109,7 @@ ACTOR Future<Void> runTests( Reference<AsyncVar<Optional<struct ClusterControlle
} }
} }
} }
printf("\n");
return Void(); return Void();
} }