]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
remove racy test assertions 499/head
authorLoic Dachary <loic@dachary.org>
Mon, 12 Aug 2013 13:20:57 +0000 (15:20 +0200)
committerLoic Dachary <loic@dachary.org>
Wed, 14 Aug 2013 13:13:27 +0000 (15:13 +0200)
commitdfd58548d961d496086e556bd228f34737be49b0
tree60da921aadc1495a56485e2d886be5a124640bab
parent90ccd2676afed19d496b9d59bb51c46b01a37ffa
remove racy test assertions

Do not assert before the loop waiting for the thread to complete the
expected side effect. The whole point of the loop is to make sure
there is no window of opportunity for a race condition and asserting
before it means taking a useless risk. If run enough times, it will
happen.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/test/test_osd_types.cc