Try to fix wait() in ProfileManager tests
In case condition is immediately met.
This commit is contained in:
parent
8ec6f90077
commit
55dbd5cb84
|
@ -709,6 +709,9 @@ private extension ProfileManagerTests {
|
|||
after action: (ProfileManager) async throws -> Void,
|
||||
until condition: @escaping (ProfileManager) -> Bool
|
||||
) async throws {
|
||||
guard !condition(sut) else {
|
||||
return
|
||||
}
|
||||
let exp = expectation(description: description)
|
||||
var wasMet = false
|
||||
|
||||
|
|
Loading…
Reference in New Issue