From 4f7cf6cc7dbe1ffe2dde1b7eb8169106213380d6 Mon Sep 17 00:00:00 2001 From: Walid Kayhal <3347810+waliid@users.noreply.github.com> Date: Wed, 11 Dec 2024 08:12:18 +0100 Subject: [PATCH] Fix ErrorTests.testInvalidStream() --- Tests/PlayerTests/Player/ErrorTests.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Tests/PlayerTests/Player/ErrorTests.swift b/Tests/PlayerTests/Player/ErrorTests.swift index f42096e9..fe92d602 100644 --- a/Tests/PlayerTests/Player/ErrorTests.swift +++ b/Tests/PlayerTests/Player/ErrorTests.swift @@ -34,10 +34,9 @@ final class ErrorTests: TestCase { func testInvalidStream() { let player = Player(item: .simple(url: Stream.unavailable.url)) - expectEqualPublishedNext( + expectAtLeastEqualPublishedNext( values: [.init(rawValue: NSURLErrorFileDoesNotExist)], - from: Self.errorCodePublisher(for: player), - during: .seconds(1) + from: Self.errorCodePublisher(for: player) ) }