]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test_stress_watch: remove bogus asserts
authorJosh Durgin <josh.durgin@inktank.com>
Wed, 10 Apr 2013 18:35:46 +0000 (11:35 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Wed, 10 Apr 2013 18:36:36 +0000 (11:36 -0700)
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 <josh.durgin@inktank.com>
Reviewed-by: Sam Just <sam.just@inktank.com>
src/test/test_stress_watch.cc

index 2192815ab2ec1aafabb6e067392143895564e50d..d34e9ffb53fc6b5d429b9668d0df2b407c9c3798 100644 (file)
@@ -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);