diff options
Diffstat (limited to 'searchcore/src/tests/proton/common/timer/timer_test.cpp')
-rw-r--r-- | searchcore/src/tests/proton/common/timer/timer_test.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/searchcore/src/tests/proton/common/timer/timer_test.cpp b/searchcore/src/tests/proton/common/timer/timer_test.cpp index 8dd0c0abf53..0f517a00a5d 100644 --- a/searchcore/src/tests/proton/common/timer/timer_test.cpp +++ b/searchcore/src/tests/proton/common/timer/timer_test.cpp @@ -57,7 +57,6 @@ public: timer = make_scheduled_executor<ScheduledT>(transport, executor); } ~ScheduledExecutorTest() { - timer->reset(); transport.ShutDown(true); } }; @@ -75,15 +74,6 @@ TYPED_TEST(ScheduledExecutorTest, test_scheduling) { EXPECT_TRUE(latch2.await(60s)); } -TYPED_TEST(ScheduledExecutorTest, test_reset) { - vespalib::CountDownLatch latch1(2); - auto handleA = this->timer->scheduleAtFixedRate(std::make_unique<TestTask>(latch1), 2s, 3s); - this->timer->reset(); - EXPECT_TRUE(!latch1.await(3s)); - auto handleB = this->timer->scheduleAtFixedRate(std::make_unique<TestTask>(latch1), 200ms, 300ms); - EXPECT_TRUE(latch1.await(60s)); -} - TYPED_TEST(ScheduledExecutorTest, test_drop_handle) { vespalib::CountDownLatch latch1(2); auto handleA = this->timer->scheduleAtFixedRate(std::make_unique<TestTask>(latch1), 2s, 3s); |