]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/throttle: add usleep for Thread_get::entry 8367/head
authorYan Jun <yan.jun8@zte.com.cn>
Wed, 30 Mar 2016 03:35:41 +0000 (11:35 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Wed, 30 Mar 2016 06:22:50 +0000 (14:22 +0800)
commit11333961cebd5ee4a388c448541e57c43ea3dc39
tree35fd06b509365ea9b95c9065e2224e816ceafda4
parent064c3e635d1b4de34478c423270d2b422079bc23
test/throttle: add usleep for Thread_get::entry

In the test case ThrottleTest.get, we try to delay one or a few microseconds
to do throttle.put that will wake up a waited throttle,
and we expect t.waited is false for short delay and true for long delay,
however the result did not meet our expectations
since even one microseconds is too long.
Maybe we should add usleep for Thread_get::entry.

Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/test/common/Throttle.cc