Skip to content

Commit c50727b

Browse files
author
Steven Moreland
committed
binderUtilsHostTest: increase timeout to reduce flake
Flaking 0.16% of the time. Change-Id: Ib36943efc6dba3b7f38b432c1d5b49b33d27c4b5 Fixes: 377571547 Test: N/A
1 parent e57dca0 commit c50727b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libs/binder/tests/binderUtilsHostTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ TEST(UtilsHost, ExecuteLongRunning) {
5656
});
5757
auto elapsedMs = millisSince(start);
5858
EXPECT_GE(elapsedMs, 1000);
59-
EXPECT_LT(elapsedMs, 2000);
59+
EXPECT_LT(elapsedMs, 3000); // b/377571547: higher to reduce flake
6060

6161
ASSERT_TRUE(result.has_value());
6262
EXPECT_EQ(std::nullopt, result->exitCode);
@@ -65,7 +65,7 @@ TEST(UtilsHost, ExecuteLongRunning) {
6565

6666
// ~CommandResult() called, child process is killed.
6767
// Assert that the second sleep does not finish.
68-
EXPECT_LT(millisSince(start), 2000);
68+
EXPECT_LT(millisSince(start), 3000);
6969
}
7070

7171
TEST(UtilsHost, ExecuteLongRunning2) {

0 commit comments

Comments
 (0)