Tests.SDK: Reduce timeout by factor 1000 because new machines can be fast enough to complete within 1ms

This commit is contained in:
Dennis Klein 2020-09-16 14:07:12 +02:00 committed by Dennis Klein
parent 5e6ad47223
commit 0f5e1b6815
2 changed files with 2 additions and 2 deletions

View File

@ -464,7 +464,7 @@ class BasicTopology : public AsioBase<Executor, Allocator>
} }
} }
using Duration = std::chrono::milliseconds; using Duration = std::chrono::microseconds;
using ChangeStateCompletionSignature = void(std::error_code, TopologyState); using ChangeStateCompletionSignature = void(std::error_code, TopologyState);
private: private:

View File

@ -361,7 +361,7 @@ TEST_F(Topology, AsyncSetPropertiesTimeout)
topo.AsyncSetProperties({{"key1", "val1"}}, topo.AsyncSetProperties({{"key1", "val1"}},
"", "",
std::chrono::milliseconds(1), std::chrono::microseconds(1),
[=](std::error_code ec, sdk::FailedDevices) mutable { [=](std::error_code ec, sdk::FailedDevices) mutable {
LOG(info) << ec; LOG(info) << ec;
EXPECT_EQ(ec, MakeErrorCode(ErrorCode::OperationTimeout)); EXPECT_EQ(ec, MakeErrorCode(ErrorCode::OperationTimeout));