From b721315ef7e767bcc24d270f81a4ab87dc8fb08b Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Thu, 20 May 2021 08:26:38 -0500 Subject: [PATCH] fix: Go version for release publish --- .github/workflows/release.yaml | 6 ++++++ wsnet/wsnet_test.go | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7ac0fdcf..19739a82 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,6 +9,9 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: '^1.16.3' - name: Build run: make -j build/linux build/windows - name: Upload linux @@ -36,6 +39,9 @@ jobs: with: p12-file-base64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }} p12-password: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }} + - uses: actions/setup-go@v2 + with: + go-version: '^1.16.3' - name: Build Release Assets run: make build/macos env: diff --git a/wsnet/wsnet_test.go b/wsnet/wsnet_test.go index 10a3a5e2..6b7fa6f1 100644 --- a/wsnet/wsnet_test.go +++ b/wsnet/wsnet_test.go @@ -56,6 +56,11 @@ func createDumbBroker(t *testing.T) (connectAddr string, listenAddr string) { c, err := websocket.Accept(w, r, nil) if err != nil { t.Error(err) + return + } + if sess == nil { + t.Error("listen not called") + return } nc := websocket.NetConn(context.Background(), c, websocket.MessageBinary) mut.Lock()