Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit bce838d

Browse files
authored
fix: Go version for release publish (#354)
1 parent 74d0294 commit bce838d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/release.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
steps:
1010
- name: Checkout code
1111
uses: actions/checkout@v2
12+
- uses: actions/setup-go@v2
13+
with:
14+
go-version: '^1.16.3'
1215
- name: Build
1316
run: make -j build/linux build/windows
1417
- name: Upload linux
@@ -36,6 +39,9 @@ jobs:
3639
with:
3740
p12-file-base64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
3841
p12-password: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
42+
- uses: actions/setup-go@v2
43+
with:
44+
go-version: '^1.16.3'
3945
- name: Build Release Assets
4046
run: make build/macos
4147
env:

wsnet/wsnet_test.go

+5
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ func createDumbBroker(t *testing.T) (connectAddr string, listenAddr string) {
5656
c, err := websocket.Accept(w, r, nil)
5757
if err != nil {
5858
t.Error(err)
59+
return
60+
}
61+
if sess == nil {
62+
t.Error("listen not called")
63+
return
5964
}
6065
nc := websocket.NetConn(context.Background(), c, websocket.MessageBinary)
6166
mut.Lock()

0 commit comments

Comments
 (0)