mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-27 02:02:26 +00:00
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,
|
after action: (ProfileManager) async throws -> Void,
|
||||||
until condition: @escaping (ProfileManager) -> Bool
|
until condition: @escaping (ProfileManager) -> Bool
|
||||||
) async throws {
|
) async throws {
|
||||||
|
guard !condition(sut) else {
|
||||||
|
return
|
||||||
|
}
|
||||||
let exp = expectation(description: description)
|
let exp = expectation(description: description)
|
||||||
var wasMet = false
|
var wasMet = false
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user