Skip to content

Commit 6eece99

Browse files
chore: Fixes swift 6 warnings
1 parent e585017 commit 6eece99

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Sources/GraphQL/Map/Map.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ public extension Map {
600600
}
601601
}
602602

603-
extension String: CodingKey {
603+
extension String: @retroactive CodingKey {
604604
public var stringValue: String {
605605
return self
606606
}

Tests/GraphQLTests/SubscriptionTests/SubscriptionTests.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ import XCTest
655655
]]
656656
)
657657
)
658-
wait(for: [expectation], timeout: timeoutDuration)
658+
await fulfillment(of: [expectation], timeout: timeoutDuration)
659659
XCTAssertEqual(results, expected)
660660

661661
// Low priority email shouldn't trigger an event
@@ -668,7 +668,7 @@ import XCTest
668668
unread: true,
669669
priority: 2
670670
))
671-
wait(for: [expectation], timeout: timeoutDuration)
671+
await fulfillment(of: [expectation], timeout: timeoutDuration)
672672
XCTAssertEqual(results, expected)
673673

674674
// Higher priority one should trigger again
@@ -694,7 +694,7 @@ import XCTest
694694
]]
695695
)
696696
)
697-
wait(for: [expectation], timeout: timeoutDuration)
697+
await fulfillment(of: [expectation], timeout: timeoutDuration)
698698
XCTAssertEqual(results, expected)
699699

700700
// So that the Task won't immediately be cancelled since the ConcurrentEventStream is
@@ -756,7 +756,7 @@ import XCTest
756756
]]
757757
)
758758
)
759-
wait(for: [expectation], timeout: timeoutDuration)
759+
await fulfillment(of: [expectation], timeout: timeoutDuration)
760760
XCTAssertEqual(results, expected)
761761

762762
db.stop()
@@ -772,7 +772,7 @@ import XCTest
772772
))
773773

774774
// Ensure that the current result was the one before the db was stopped
775-
wait(for: [expectation], timeout: timeoutDuration)
775+
await fulfillment(of: [expectation], timeout: timeoutDuration)
776776
XCTAssertEqual(results, expected)
777777

778778
// So that the Task won't immediately be cancelled since the ConcurrentEventStream is
@@ -919,7 +919,7 @@ import XCTest
919919
]]
920920
)
921921
)
922-
wait(for: [expectation], timeout: timeoutDuration)
922+
await fulfillment(of: [expectation], timeout: timeoutDuration)
923923
XCTAssertEqual(results, expected)
924924

925925
expectation = XCTestExpectation()
@@ -938,7 +938,7 @@ import XCTest
938938
]
939939
)
940940
)
941-
wait(for: [expectation], timeout: timeoutDuration)
941+
await fulfillment(of: [expectation], timeout: timeoutDuration)
942942
XCTAssertEqual(results, expected)
943943

944944
expectation = XCTestExpectation()
@@ -959,7 +959,7 @@ import XCTest
959959
]]
960960
)
961961
)
962-
wait(for: [expectation], timeout: timeoutDuration)
962+
await fulfillment(of: [expectation], timeout: timeoutDuration)
963963
XCTAssertEqual(results, expected)
964964

965965
// So that the Task won't immediately be cancelled since the ConcurrentEventStream is

0 commit comments

Comments
 (0)