summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/test/common/Throttle.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/common/Throttle.cc b/src/test/common/Throttle.cc
index f50ef2e1b7b..60d7daebdac 100644
--- a/src/test/common/Throttle.cc
+++ b/src/test/common/Throttle.cc
@@ -193,10 +193,13 @@ TEST_F(ThrottleTest, wait) {
t.join();
- if (!(waited = t.waited))
+ if (!(waited = t.waited)) {
delay *= 2;
+ // undo the changes we made
+ throttle.put(throttle_max / 2);
+ throttle.wait(throttle_max);
+ }
} while(!waited);
-
}
TEST_F(ThrottleTest, destructor) {