Skip to content

Commit

Permalink
I can hallucinate `'s now
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoughjr committed Nov 23, 2024
1 parent 5b9ee87 commit 2859454
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tests/WebSocketKitTests/AsyncWebSocketKitTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ final class AsyncWebSocketKitTests: XCTestCase {
func testBadURLSchemeInWebsocketConnect() async throws {

do {
try await WebSocket.connect(to: "w':", on: self.elg, onUpgrade: { _ async in })
try await WebSocket.connect(to: "w`:", on: self.elg, onUpgrade: { _ async in })
XCTAssertThrowsError({}())
} catch {
XCTAssertThrowsError(try { throw error }()) {
Expand Down
2 changes: 1 addition & 1 deletion Tests/WebSocketKitTests/WebSocketKitTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ final class WebSocketKitTests: XCTestCase {

func testBadURLSchemeInWebsocketConnect() throws {

XCTAssertThrowsError(try WebSocket.connect(to: "w':", on: self.elg, onUpgrade: { _ in }).wait()) {
XCTAssertThrowsError(try WebSocket.connect(to: "w`:", on: self.elg, onUpgrade: { _ in }).wait()) {
guard case .invalidURL = $0 as? WebSocketClient.Error else {
return XCTFail("Expected .invalidURL but got \(String(reflecting: $0))")
}
Expand Down

0 comments on commit 2859454

Please sign in to comment.