Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
atdrendel committed Aug 15, 2024
1 parent d651cdc commit 29802c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on: push

jobs:
test:
runs-on: macos-13
runs-on: macos-14

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Select Xcode 15
run: sudo xcode-select -s /Applications/Xcode_15.0.app
run: sudo xcode-select -s /Applications/Xcode_15.4.app
- name: Test
run: swift test
5 changes: 1 addition & 4 deletions Tests/WebSocketTests/Server/WebSocketServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ enum WebSocketServerOutput: Hashable {
}

final class WebSocketServer {
var port: Int { _port! }
private var _port: Int?
var port: Int { channel!.localAddress!.port! }

let maximumMessageSize: Int

Expand Down Expand Up @@ -52,8 +51,6 @@ final class WebSocketServer {
self?.inputSubject.send(.data(data))
}
}.bind(host: "localhost", port: 0).wait()

_port = channel!.localAddress!.port!
}

private func subscribeToOutputPublisher(_ ws: WebSocketKit.WebSocket) {
Expand Down

0 comments on commit 29802c6

Please sign in to comment.