Skip to content

Commit dbbd21f

Browse files
[video_player] Adjust iOS test timeouts (flutter#4725)
1 parent 9378670 commit dbbd21f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## NEXT
2+
3+
* Adjusts test timeouts for network-dependent native tests to avoid flake.
4+
15
## 2.2.17
26

37
* Splits from `video_player` as a federated implementation.

packages/video_player/video_player_avfoundation/example/ios/RunnerTests/VideoPlayerTests.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ - (void)testDeregistersFromPlayer {
6767
XCTAssertNil(error);
6868

6969
[self keyValueObservingExpectationForObject:avPlayer keyPath:@"currentItem" expectedValue:nil];
70-
[self waitForExpectationsWithTimeout:1 handler:nil];
70+
[self waitForExpectationsWithTimeout:30.0 handler:nil];
7171
}
7272

7373
- (void)testVideoControls {
@@ -127,7 +127,7 @@ - (void)testAudioControls {
127127
[initializedExpectation fulfill];
128128
}
129129
}];
130-
[self waitForExpectationsWithTimeout:1.0 handler:nil];
130+
[self waitForExpectationsWithTimeout:30.0 handler:nil];
131131

132132
// Starts paused.
133133
AVPlayer *avPlayer = player.player;

0 commit comments

Comments
 (0)