Syncing unit tests with spec changes

This commit is contained in:
Pavel Kirienko
2017-04-06 18:34:17 +03:00
parent 4a9da04407
commit e5a0746443
4 changed files with 11 additions and 11 deletions
+3 -3
View File
@@ -281,7 +281,7 @@ TEST(ServiceClient, ConcurrentCalls)
ASSERT_LT(0, client.call(1, request, last_call_id));
}
ASSERT_LT(0, client.call(99, root_ns_a::StringService::Request())); // Will timeout in 500 ms
ASSERT_LT(0, client.call(99, root_ns_a::StringService::Request())); // Will timeout in 1000 ms
client.setRequestTimeout(uavcan::MonotonicDuration::fromMSec(100));
@@ -342,9 +342,9 @@ TEST(ServiceClient, ConcurrentCalls)
ASSERT_TRUE(handler.match(ResultType::ErrorTimeout, 88, root_ns_a::StringService::Response()));
/*
* Validating the 500 ms timeout
* Validating the 1000 ms timeout
*/
nodes.spinBoth(uavcan::MonotonicDuration::fromMSec(500));
nodes.spinBoth(uavcan::MonotonicDuration::fromMSec(1000));
ASSERT_FALSE(client.hasPendingCalls());
ASSERT_EQ(0, client.getNumPendingCalls()); // All finished