From 10e97be696eb3095da7d78aaaf4bd1882875ae1f Mon Sep 17 00:00:00 2001 From: Walid Kayhal <3347810+waliid@users.noreply.github.com> Date: Wed, 11 Dec 2024 14:16:47 +0100 Subject: [PATCH] Fix PlayerPublisherTests.testBuffering() --- Tests/PlayerTests/Publishers/PlayerPublisherTests.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Tests/PlayerTests/Publishers/PlayerPublisherTests.swift b/Tests/PlayerTests/Publishers/PlayerPublisherTests.swift index 814e75c3..5d397ded 100644 --- a/Tests/PlayerTests/Publishers/PlayerPublisherTests.swift +++ b/Tests/PlayerTests/Publishers/PlayerPublisherTests.swift @@ -54,10 +54,9 @@ final class PlayerPublisherTests: TestCase { func testBuffering() { let player = Player(item: .simple(url: Stream.onDemand.url)) - expectEqualPublished( + expectAtLeastEqualPublished( values: [true, false], - from: Self.bufferingPublisher(for: player), - during: .seconds(1) + from: Self.bufferingPublisher(for: player) ) }