Skip to content

Commit 4d8a719

Browse files
Remove no longer required test
1 parent c62d6bd commit 4d8a719

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

Tests/PetstoreConsumerTests/Test_Types.swift

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -230,20 +230,5 @@ final class Test_Types: XCTestCase {
230230
try Servers.Server3.url(subdomain: "bar", port: ._8443, basePath: "v2/staging"),
231231
URL(string: "https://bar.example.com:8443/v2/staging")
232232
)
233-
// Intentionally using the deprecated static function to check for regressions.
234-
// Once the deprecated functions are no longer being generated this assertion is
235-
// unnecessary and can be removed.
236-
XCTAssertThrowsError(try Servers.server3(port: "foo")) { error in
237-
guard
238-
case let .invalidServerVariableValue(name: name, value: value, allowedValues: allowedValues) = error
239-
as? RuntimeError
240-
else {
241-
XCTFail("Expected error, but not this: \(error)")
242-
return
243-
}
244-
XCTAssertEqual(name, "port")
245-
XCTAssertEqual(value, "foo")
246-
XCTAssertEqual(allowedValues, ["443", "8443"])
247-
}
248233
}
249234
}

0 commit comments

Comments
 (0)