From: Josh Durgin Date: Wed, 10 Apr 2013 18:35:46 +0000 (-0700) Subject: test_stress_watch: remove bogus asserts X-Git-Tag: v0.56.5~12^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7bc8df1f3e3b60b59672a082eba374729a6866b8;p=ceph.git test_stress_watch: remove bogus asserts There's no reason to check the duration of a watch. The notify will timeout after 30s on the OSD, but there's no guarantee the client will see that in any bounded time. This test is really meant as a stress test of the OSDs anyway, not of the clients, so just remove asserts about operation duration. Fixes: #4591 Signed-off-by: Josh Durgin Reviewed-by: Sam Just (cherry picked from commit 4b656730ffff21132f358c2b9a63504dfbf0998d) --- diff --git a/src/test/test_stress_watch.cc b/src/test/test_stress_watch.cc index 2192815ab2ec..d34e9ffb53fc 100644 --- a/src/test/test_stress_watch.cc +++ b/src/test/test_stress_watch.cc @@ -72,16 +72,10 @@ TEST(WatchStress, Stress1) { uint64_t handle; WatchNotifyTestCtx ctx; - utime_t duration = ceph_clock_now(NULL); ASSERT_EQ(0, ioctx.watch("foo", 0, &handle, &ctx)); - duration = ceph_clock_now(NULL) - duration; - ASSERT_LT(duration.sec(), 5); bufferlist bl2; - duration = ceph_clock_now(NULL); ASSERT_EQ(0, ioctx.notify("foo", 0, bl2)); - duration = ceph_clock_now(NULL) - duration; - ASSERT_LT(duration.sec(), 5); TestAlarm alarm; sem_wait(&sem);