Skip to content

Commit 029e412

Browse files
committed
Fix CI
1 parent 4234de2 commit 029e412

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

websocket.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ func (c *Conn) writeFrame(ctx context.Context, fin bool, opcode opcode, p []byte
660660
return n, nil
661661
}
662662

663-
func (c *Conn) realWriteFrame(ctx context.Context, h header, p []byte) (n int, err error){
663+
func (c *Conn) realWriteFrame(ctx context.Context, h header, p []byte) (n int, err error) {
664664
defer func() {
665665
if err != nil {
666666
select {

websocket_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,9 @@ func TestHandshake(t *testing.T) {
415415
return err
416416
}
417417

418+
err = <-errc
418419
c.Close(websocket.StatusNormalClosure, "")
419-
return <-errc
420+
return err
420421
},
421422
},
422423
{

0 commit comments

Comments
 (0)