Commit 03bdc438 authored by sczs's avatar sczs Committed by Commit Bot

[ios] Increases wait time for TestInfobarBannerNotPresentAfterWebStateChange

Bug: 993962
Change-Id: Iaa4ada2faf2384a4bdb142756bece266d80fddd6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1761297
Commit-Queue: Sergio Collazos <sczs@chromium.org>
Reviewed-by: default avatarPeter Lee <pkl@chromium.org>
Cr-Commit-Position: refs/heads/master@{#688591}
parent b7af914e
...@@ -374,8 +374,11 @@ TEST_F(InfobarContainerCoordinatorTest, ...@@ -374,8 +374,11 @@ TEST_F(InfobarContainerCoordinatorTest,
InfobarBannerPresentationState::Presented); InfobarBannerPresentationState::Presented);
web_state_list_->ActivateWebStateAt(0); web_state_list_->ActivateWebStateAt(0);
// Wait for any potential presentation. // Wait for any potential presentation. This value was initially 1 second but
base::test::ios::SpinRunLoopWithMinDelay(base::TimeDelta::FromSecondsD(1)); // started to cause Flake on iOS13, this seems to be fixed when we change it
// to 2 seconds. If this happens again with a different iOS version or device,
// etc. or the test keeps flaking, then it should probably be redesigned.
base::test::ios::SpinRunLoopWithMinDelay(base::TimeDelta::FromSecondsD(2));
ASSERT_NE(infobar_container_coordinator_.infobarBannerState, ASSERT_NE(infobar_container_coordinator_.infobarBannerState,
InfobarBannerPresentationState::Presented); InfobarBannerPresentationState::Presented);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment