From 3bf75ef193458889b8d8315c05d02c9ed2de3a53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=BBenczykowski?= Date: Mon, 15 May 2023 18:48:18 +0000 Subject: [PATCH] deflake - bump TestCloseSocketWithoutUntag 50ms test timeout to 5s MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: 282170301 Test: TreeHugger Signed-off-by: Maciej Żenczykowski Change-Id: Ic432da1ffe3951955401a0f547522dd0ab96b67c --- netd/BpfBaseTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netd/BpfBaseTest.cpp b/netd/BpfBaseTest.cpp index 624d21601f..c979a7bc98 100644 --- a/netd/BpfBaseTest.cpp +++ b/netd/BpfBaseTest.cpp @@ -93,7 +93,7 @@ TEST_F(BpfBasicTest, TestCloseSocketWithoutUntag) { ASSERT_EQ(TEST_TAG, tagResult.value().tag); ASSERT_EQ(0, close(sock)); // Check map periodically until sk destroy handler have done its job. - for (int i = 0; i < 10; i++) { + for (int i = 0; i < 1000; i++) { usleep(5000); // 5ms tagResult = cookieTagMap.readValue(cookie); if (!tagResult.ok()) { @@ -101,7 +101,7 @@ TEST_F(BpfBasicTest, TestCloseSocketWithoutUntag) { return; } } - FAIL() << "socket tag still exist after 50ms"; + FAIL() << "socket tag still exist after 5s"; } }