deflake - bump TestCloseSocketWithoutUntag 50ms test timeout to 5s
Bug: 282170301 Test: TreeHugger Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: Ic432da1ffe3951955401a0f547522dd0ab96b67c
This commit is contained in:
@@ -93,7 +93,7 @@ TEST_F(BpfBasicTest, TestCloseSocketWithoutUntag) {
|
|||||||
ASSERT_EQ(TEST_TAG, tagResult.value().tag);
|
ASSERT_EQ(TEST_TAG, tagResult.value().tag);
|
||||||
ASSERT_EQ(0, close(sock));
|
ASSERT_EQ(0, close(sock));
|
||||||
// Check map periodically until sk destroy handler have done its job.
|
// 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
|
usleep(5000); // 5ms
|
||||||
tagResult = cookieTagMap.readValue(cookie);
|
tagResult = cookieTagMap.readValue(cookie);
|
||||||
if (!tagResult.ok()) {
|
if (!tagResult.ok()) {
|
||||||
@@ -101,7 +101,7 @@ TEST_F(BpfBasicTest, TestCloseSocketWithoutUntag) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
FAIL() << "socket tag still exist after 50ms";
|
FAIL() << "socket tag still exist after 5s";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user