Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
windycrypto committed Nov 26, 2023
1 parent 29b40cc commit 12f3400
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions relay/wsconn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@ func TestSendChanWithNoReceiver(t *testing.T) {
go func() {
defer wg.Done()
for {
select {
case i := <-send:
fmt.Printf("received: %v\n", i)
if i == 3 {
fmt.Printf("receiving routine exit\n")
return
}
i := <-send
fmt.Printf("received: %v\n", i)
if i == 3 {
fmt.Printf("receiving routine exit\n")
return
}
}
}()
Expand Down

0 comments on commit 12f3400

Please sign in to comment.