made the test clean up after itself

This commit is contained in:
Evan Tschannen 2022-10-28 09:26:48 -07:00
parent a452e1899b
commit 51e2f8e74b
1 changed files with 7 additions and 1 deletions

View File

@ -1677,7 +1677,10 @@ TEST_CASE("performance/fdbserver/DiskQueue") {
}
}
}
loop {
while (loopCount < 4000) {
if (loopCount % 100 == 0) {
printf("loop count: %d\n", loopCount);
}
if (++loopCount % 2 == 0) {
state IDiskQueue::location frontLocation = locations.front();
locations.pop_front();
@ -1692,4 +1695,7 @@ TEST_CASE("performance/fdbserver/DiskQueue") {
lastCommit = queue->commit();
wait(prevCommit);
}
queue->dispose();
wait(queue->onClosed());
return Void();
}