Merge pull request #8367 from Yan-waller/yj-wip-utthrottle

test/throttle: reassign the value of 'delay' in ThrottleTest.get

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
This commit is contained in:
Sage Weil 2016-05-04 09:28:31 -04:00
commit e1dd16f471

View File

@ -52,6 +52,7 @@ protected:
}
virtual void *entry() {
usleep(5);
waited = throttle.get(count);
throttle.put(count);
return NULL;
@ -123,6 +124,7 @@ TEST_F(ThrottleTest, get) {
delay *= 2;
} while(!waited);
delay = 1;
do {
cout << "Trying (2) with delay " << delay << "us\n";