From f0572491d83270fcdae5ccb16b8ddaa78000f39d Mon Sep 17 00:00:00 2001 From: Ilias Pavlidakis Date: Tue, 12 Nov 2024 15:03:10 +0200 Subject: [PATCH] [Fix]Failing iOS 15 test (#598) --- .../Utils/AudioSession/StreamRTCAudioSession_Tests.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/StreamVideoTests/Utils/AudioSession/StreamRTCAudioSession_Tests.swift b/StreamVideoTests/Utils/AudioSession/StreamRTCAudioSession_Tests.swift index 3d71c044e..b871b30c2 100644 --- a/StreamVideoTests/Utils/AudioSession/StreamRTCAudioSession_Tests.swift +++ b/StreamVideoTests/Utils/AudioSession/StreamRTCAudioSession_Tests.swift @@ -40,7 +40,8 @@ final class StreamRTCAudioSession_Tests: XCTestCase { // MARK: - currentRoute func test_currentRoute_returnsCorrectRoute() { - XCTAssertEqual(subject.currentRoute, rtcAudioSession.currentRoute) + XCTAssertEqual(subject.currentRoute.inputs.map(\.portType), rtcAudioSession.currentRoute.inputs.map(\.portType)) + XCTAssertEqual(subject.currentRoute.outputs.map(\.portType), rtcAudioSession.currentRoute.outputs.map(\.portType)) } // MARK: - category