From 0f5e1b68159f8ced850d6a672be0ff17fd89a463 Mon Sep 17 00:00:00 2001 From: Dennis Klein Date: Wed, 16 Sep 2020 14:07:12 +0200 Subject: [PATCH] Tests.SDK: Reduce timeout by factor 1000 because new machines can be fast enough to complete within 1ms --- fairmq/sdk/Topology.h | 2 +- test/sdk/_topology.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fairmq/sdk/Topology.h b/fairmq/sdk/Topology.h index 7f3ab9ac..557d471f 100644 --- a/fairmq/sdk/Topology.h +++ b/fairmq/sdk/Topology.h @@ -464,7 +464,7 @@ class BasicTopology : public AsioBase } } - using Duration = std::chrono::milliseconds; + using Duration = std::chrono::microseconds; using ChangeStateCompletionSignature = void(std::error_code, TopologyState); private: diff --git a/test/sdk/_topology.cxx b/test/sdk/_topology.cxx index 54027e97..183da18c 100644 --- a/test/sdk/_topology.cxx +++ b/test/sdk/_topology.cxx @@ -361,7 +361,7 @@ TEST_F(Topology, AsyncSetPropertiesTimeout) topo.AsyncSetProperties({{"key1", "val1"}}, "", - std::chrono::milliseconds(1), + std::chrono::microseconds(1), [=](std::error_code ec, sdk::FailedDevices) mutable { LOG(info) << ec; EXPECT_EQ(ec, MakeErrorCode(ErrorCode::OperationTimeout));