summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Durgin <josh.durgin@inktank.com>2013-04-10 11:35:46 -0700
committerJosh Durgin <josh.durgin@inktank.com>2013-04-10 11:36:36 -0700
commit4b656730ffff21132f358c2b9a63504dfbf0998d (patch)
treed114a9d56f43b84c87a01989d845b0208a4db4cc
parent3888a12385aa6fcf35c9cdce9ad82a2cdd3377b7 (diff)
downloadceph-4b656730ffff21132f358c2b9a63504dfbf0998d.tar.gz
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 <josh.durgin@inktank.com> Reviewed-by: Sam Just <sam.just@inktank.com>
-rw-r--r--src/test/test_stress_watch.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/test/test_stress_watch.cc b/src/test/test_stress_watch.cc
index 2192815ab2e..d34e9ffb53f 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);