File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class UnitTestService final : public sample::ugrpc::UnitTestServiceBase {
28
28
LOG_DEBUG () << request_counter_ << " request attempt: now=" << std::chrono::system_clock::now ()
29
29
<< " , deadline=" << context.GetServerContext ().deadline ();
30
30
if (++request_counter_ % 4 ) {
31
- engine::InterruptibleSleepFor (std::chrono::milliseconds{ 200 } );
31
+ engine::InterruptibleSleepFor (tests:: kShortTimeout + tests:: kAddSleep );
32
32
EXPECT_TRUE (context.GetServerContext ().IsCancelled ());
33
33
// this status should not reach client because of 'perAttemptRecvTimeout'
34
34
LOG_DEBUG () << request_counter_ << " : return ABORTED" ;
@@ -51,7 +51,7 @@ using TimeoutTest = ugrpc::tests::ServiceFixture<UnitTestService>;
51
51
UTEST_F (TimeoutTest, DISABLED_IN_OLD_GRPC_TEST_NAME(PerAttemptTimeout)) {
52
52
ugrpc::client::Qos qos;
53
53
qos.attempts = 4 ;
54
- qos.timeout = std::chrono::milliseconds{ 100 } ;
54
+ qos.timeout = tests:: kShortTimeout ;
55
55
ugrpc::client::ClientQos client_qos;
56
56
client_qos.SetDefault (qos);
57
57
const auto config = std::vector<dynamic_config::KeyValue>{{tests::kUnitTestClientQos , client_qos}};
You can’t perform that action at this time.
0 commit comments