From e52b7e1edd0491bb286b34f5b9869ea9dbda5c54 Mon Sep 17 00:00:00 2001 From: hais Date: Mon, 27 Sep 2021 12:08:13 -0700 Subject: [PATCH] Add more time buffer so that the alarm will be executed as expected in tests. It will fix the flaky EndpointIdRotateWhenHighVizAdvertisementAgainForAWhile test. PiperOrigin-RevId: 399248463 --- cpp/core/internal/client_proxy_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/core/internal/client_proxy_test.cc b/cpp/core/internal/client_proxy_test.cc index 7be90ad2..61038279 100644 --- a/cpp/core/internal/client_proxy_test.cc +++ b/cpp/core/internal/client_proxy_test.cc @@ -530,7 +530,7 @@ TEST_F(ClientProxyTest, // Wait to expire and then advertise. absl::SleepFor(ClientProxy::kHighPowerAdvertisementEndpointIdCacheTimeout + - absl::Milliseconds(10)); + absl::Milliseconds(100)); Endpoint advertising_endpoint_2 = StartAdvertising( &client1_, advertising_connection_listener_, advertising_options);