From 508991882dd3def179645e3897d1411b43dd1167 Mon Sep 17 00:00:00 2001 From: Ilias Pavlidakis Date: Thu, 25 Jan 2024 15:06:38 +0200 Subject: [PATCH] Fix tests --- .../CallView/ParticipantListButton_Tests.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/StreamVideoSwiftUITests/CallView/ParticipantListButton_Tests.swift b/StreamVideoSwiftUITests/CallView/ParticipantListButton_Tests.swift index 25789c990..b2953a850 100644 --- a/StreamVideoSwiftUITests/CallView/ParticipantListButton_Tests.swift +++ b/StreamVideoSwiftUITests/CallView/ParticipantListButton_Tests.swift @@ -37,10 +37,7 @@ final class ParticipantListButton_Tests: StreamVideoUITestCase { } func test_subject_withParticipants_viewWasConfiguredCorrectly() async throws { - viewModel.call?.state.participantsMap = (0..<5).reduce(into: [String: CallParticipant]()) { partialResult, _ in - let participant = CallParticipant.dummy() - partialResult[participant.id] = participant - } + viewModel.call?.state.participants = (0..<5).map { _ in CallParticipant.dummy() } try await Task.sleep(nanoseconds: 1_000_000_000)