summaryrefslogtreecommitdiff
path: root/libutils/String8_test.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2020-10-15 18:32:55 -0700
committerJosh Gao <jmgao@google.com>2020-10-15 18:46:45 -0700
commit1115e29faf1d9a1ed49c3e5744d59675c5d58410 (patch)
tree729422ce56b5c106d19d8043c136b8bf89627312 /libutils/String8_test.cpp
parent3abb8b148564d6641f2dbe18334bce65b0ff932a (diff)
adb: fix timeout-related test flakiness.
When running tests against cuttlefish, `adb root` sometimes flakes because of a 6 second timeout in wait_for_device, which can get triggered when adbd's restart gets throttled by init. The adb client would notice that the socket went down, try to reconnect and fail because adbd still hasn't started yet, and then wait up to 10 seconds to reconnect, before which the `adb root` invocation would have failed due to timeout. Increase the timeout to be long enough to handle this, and also reduce the interval of reconnections to speed things up when we're in this scenario. Bug: http://b/170707786 Test: while true; do adb root; adb wait-for-device; adb unroot; adb wait-for-device; done Change-Id: I140d721dfcfd635d45813a55990684a25e32228c
Diffstat (limited to 'libutils/String8_test.cpp')
0 files changed, 0 insertions, 0 deletions