Skip to content

Commit

Permalink
Disable flaky test
Browse files Browse the repository at this point in the history
Documented in issue #124
  • Loading branch information
pyby committed Jul 8, 2023
1 parent 357cc9c commit ef238b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/SRGMediaPlayer.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
<Test
Identifier = "PlaybackTestCase/testFixedStreamEndWithBuggyAkamaiMLS3StreamWithSubtitles">
</Test>
<Test
Identifier = "PlaybackTestCase/testNonStreamedMediaPlayback">
</Test>
<Test
Identifier = "PlaybackTestCase/testOnDemandPlaybackStartAtTimeWithTolerances">
</Test>
Expand Down
1 change: 1 addition & 0 deletions Tests/SRGMediaPlayerTests/PlaybackTestCase.m
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,7 @@ - (void)testStreamedMediaPlayback

- (void)testNonStreamedMediaPlayback
{
#warning "This test fails in the iOS and tvOS simulator since Mac OS 13.4, see issue #124"
[self expectationForSingleNotification:SRGMediaPlayerPlaybackStateDidChangeNotification object:self.mediaPlayerController handler:^BOOL(NSNotification * _Nonnull notification) {
XCTAssertEqual([notification.userInfo[SRGMediaPlayerPlaybackStateKey] integerValue], SRGMediaPlayerPlaybackStatePreparing);
XCTAssertFalse([notification.userInfo[SRGMediaPlayerSelectedKey] boolValue]);
Expand Down

0 comments on commit ef238b2

Please sign in to comment.