Skip to content

Commit b6d7f45

Browse files
committed
Suppress some warnings in tests
1 parent d4e9db1 commit b6d7f45

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: Tests/TestingTests/IssueTests.swift

+8
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ final class IssueTests: XCTestCase {
491491
}.run(configuration: .init())
492492
}
493493

494+
@available(*, deprecated)
494495
func testErrorCheckingWithExpect() async throws {
495496
let expectationFailed = expectation(description: "Expectation failed")
496497
expectationFailed.isInverted = true
@@ -539,6 +540,7 @@ final class IssueTests: XCTestCase {
539540
await fulfillment(of: [expectationFailed], timeout: 0.0)
540541
}
541542

543+
@available(*, deprecated)
542544
func testErrorCheckingWithExpect_Mismatching() async throws {
543545
let expectationFailed = expectation(description: "Expectation failed")
544546
expectationFailed.expectedFulfillmentCount = 13
@@ -663,6 +665,7 @@ final class IssueTests: XCTestCase {
663665
await fulfillment(of: [expectationFailed], timeout: 0.0)
664666
}
665667

668+
@available(*, deprecated)
666669
func testErrorCheckingWithExpectAsync() async throws {
667670
let expectationFailed = expectation(description: "Expectation failed")
668671
expectationFailed.isInverted = true
@@ -706,6 +709,7 @@ final class IssueTests: XCTestCase {
706709
await fulfillment(of: [expectationFailed], timeout: 0.0)
707710
}
708711

712+
@available(*, deprecated)
709713
func testErrorCheckingWithExpectAsync_Mismatching() async throws {
710714
let expectationFailed = expectation(description: "Expectation failed")
711715
expectationFailed.expectedFulfillmentCount = 13
@@ -822,6 +826,7 @@ final class IssueTests: XCTestCase {
822826
await fulfillment(of: [expectationFailed], timeout: 0.0)
823827
}
824828

829+
@available(*, deprecated)
825830
func testErrorCheckingWithExpect_ThrowingFromErrorMatcher() async throws {
826831
let errorCaught = expectation(description: "Error matcher's error caught")
827832
let expectationFailed = expectation(description: "Expectation failed")
@@ -849,6 +854,7 @@ final class IssueTests: XCTestCase {
849854
await fulfillment(of: [errorCaught, expectationFailed], timeout: 0.0)
850855
}
851856

857+
@available(*, deprecated)
852858
func testErrorCheckingWithExpectAsync_ThrowingFromErrorMatcher() async throws {
853859
let errorCaught = expectation(description: "Error matcher's error caught")
854860
let expectationFailed = expectation(description: "Expectation failed")
@@ -876,6 +882,7 @@ final class IssueTests: XCTestCase {
876882
await fulfillment(of: [errorCaught, expectationFailed], timeout: 0.0)
877883
}
878884

885+
@available(*, deprecated)
879886
func testErrorCheckingWithRequire_ThrowingFromErrorMatcher() async throws {
880887
let errorCaught = expectation(description: "Error matcher's error caught")
881888
let expectationFailed = expectation(description: "Expectation failed")
@@ -904,6 +911,7 @@ final class IssueTests: XCTestCase {
904911
await fulfillment(of: [errorCaught, expectationFailed], timeout: 0.0)
905912
}
906913

914+
@available(*, deprecated)
907915
func testErrorCheckingWithRequireAsync_ThrowingFromErrorMatcher() async throws {
908916
let errorCaught = expectation(description: "Error matcher's error caught")
909917
let expectationFailed = expectation(description: "Expectation failed")

0 commit comments

Comments
 (0)