Skip to content

Commit 23073d4

Browse files
authored
Undeprecate tests that used to test deprecated code (#395)
Undeprecate tests that used to test deprecated code ### Motivation Two tests used to exercise operations in the Petstore test project that were deprecated, so to avoid warnings we deprecated the tests themselves too. We removed the deprecation of those operations a while ago, and forgot to undeprecate the tests. ### Modifications Undeprecate the tests. ### Result Removed an unnecessary deprecation of two tests. ### Test Plan All tests pass. Reviewed by: simonjbeaumont Builds: ✔︎ pull request validation (5.10) - Build finished. ✔︎ pull request validation (5.9) - Build finished. ✔︎ pull request validation (compatibility test) - Build finished. ✔︎ pull request validation (docc test) - Build finished. ✔︎ pull request validation (integration test) - Build finished. ✔︎ pull request validation (nightly) - Build finished. ✔︎ pull request validation (soundness) - Build finished. ✖︎ pull request validation (5.8) - Build finished. #395
1 parent 06b0a72 commit 23073d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/PetstoreConsumerTests/Test_Client.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ final class Test_Client: XCTestCase {
595595
}
596596
}
597597

598-
@available(*, deprecated) func testProbe_204() async throws {
598+
func testProbe_204() async throws {
599599
transport = .init { request, requestBody, baseURL, operationID in
600600
XCTAssertEqual(operationID, "probe")
601601
XCTAssertEqual(request.path, "/probe/")
@@ -612,7 +612,7 @@ final class Test_Client: XCTestCase {
612612
}
613613
}
614614

615-
@available(*, deprecated) func testProbe_undocumented() async throws {
615+
func testProbe_undocumented() async throws {
616616
transport = .init { request, requestBody, baseURL, operationID in (.init(status: .serviceUnavailable), nil) }
617617
let response = try await client.probe(.init())
618618
guard case let .undocumented(statusCode, _) = response else {

0 commit comments

Comments
 (0)