mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Fix for flaky tests (#5869)
* possible logging tests fix * fix for flaky tests * use timelimit for max test time * pr suggestions * remove comment
This commit is contained in:
@@ -175,8 +175,9 @@ struct RoomDetailsScreenViewModelTests {
|
||||
|
||||
#expect(context.viewState.dmRecipientInfo?.member == RoomMemberDetails(withProxy: recipient))
|
||||
|
||||
#expect(!context.viewState.isProcessingIgnoreRequest)
|
||||
let deferredProcessing = deferFulfillment(viewModel.context.observe(\.viewState.isProcessingIgnoreRequest),
|
||||
transitionValues: [false, true, false])
|
||||
transitionValues: [true, false])
|
||||
|
||||
context.send(viewAction: .ignoreConfirmed)
|
||||
|
||||
@@ -206,8 +207,9 @@ struct RoomDetailsScreenViewModelTests {
|
||||
|
||||
#expect(context.viewState.dmRecipientInfo?.member == RoomMemberDetails(withProxy: recipient))
|
||||
|
||||
#expect(!context.viewState.isProcessingIgnoreRequest)
|
||||
let deferredProcessing = deferFulfillment(viewModel.context.observe(\.viewState.isProcessingIgnoreRequest),
|
||||
transitionValues: [false, true, false])
|
||||
transitionValues: [true, false])
|
||||
|
||||
context.send(viewAction: .ignoreConfirmed)
|
||||
|
||||
@@ -236,8 +238,9 @@ struct RoomDetailsScreenViewModelTests {
|
||||
|
||||
#expect(context.viewState.dmRecipientInfo?.member == RoomMemberDetails(withProxy: recipient))
|
||||
|
||||
#expect(!context.viewState.isProcessingIgnoreRequest)
|
||||
let deferredProcessing = deferFulfillment(viewModel.context.observe(\.viewState.isProcessingIgnoreRequest),
|
||||
transitionValues: [false, true, false])
|
||||
transitionValues: [true, false])
|
||||
|
||||
context.send(viewAction: .unignoreConfirmed)
|
||||
|
||||
@@ -267,8 +270,9 @@ struct RoomDetailsScreenViewModelTests {
|
||||
|
||||
#expect(context.viewState.dmRecipientInfo?.member == RoomMemberDetails(withProxy: recipient))
|
||||
|
||||
#expect(!context.viewState.isProcessingIgnoreRequest)
|
||||
let deferredProcessing = deferFulfillment(viewModel.context.observe(\.viewState.isProcessingIgnoreRequest),
|
||||
transitionValues: [false, true, false])
|
||||
transitionValues: [true, false])
|
||||
|
||||
context.send(viewAction: .unignoreConfirmed)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user