flaky test fix

This commit is contained in:
Mauro Romito
2026-02-27 10:34:15 +01:00
committed by Mauro
parent 98edee0ad3
commit d0a9f3724e
@@ -221,6 +221,8 @@ struct RoomNotificationSettingsScreenViewModelTests {
#expect(notificationSettingsProxyMock.setNotificationModeRoomIdModeReceivedArguments?.1 == .mute)
#expect(notificationSettingsProxyMock.setNotificationModeRoomIdModeCallsCount == 2)
try await Task.sleep(for: .milliseconds(10)) // Workaround for flaky test
deferredMode = deferFulfillment(viewModel.context.observe(\.viewState.pendingCustomMode),
transitionValues: [nil, .mentionsAndKeywordsOnly, nil])
viewModel.context.send(viewAction: .setCustomMode(.mentionsAndKeywordsOnly))