Skip to content

Commit 259705b

Browse files
committed
Fix broken tests in swift 6
1 parent 9c13be6 commit 259705b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Tests/NimbleTests/AsyncAwaitTest.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ final class AsyncAwaitTest: XCTestCase { // swiftlint:disable:this type_body_len
133133
// However, the functionality actually works as you'd expect it to, you're just expected to tag things to use the main actor.
134134
@Sendable func isMainThread() -> Bool { Thread.isMainThread }
135135

136-
await expecta(isMainThread()).toEventually(beTrue())
137-
await expecta(isMainThread()).toEventuallyNot(beFalse())
138-
await expecta(isMainThread()).toAlways(beTrue(), until: .seconds(1))
139-
await expecta(isMainThread()).toNever(beFalse(), until: .seconds(1))
136+
await expect(isMainThread).toEventually(beTrue())
137+
await expect(isMainThread).toEventuallyNot(beFalse())
138+
await expect(isMainThread).toAlways(beTrue(), until: .seconds(1))
139+
await expect(isMainThread).toNever(beFalse(), until: .seconds(1))
140140
}
141141

142142
func testToEventuallyWithCustomDefaultTimeout() async {

0 commit comments

Comments
 (0)