Skip to content

Commit

Permalink
Fix nit test race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
AeonSw4n committed Mar 6, 2024
1 parent 464aeaf commit 5b9cc96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/network_connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ func (sl *simpleListener) start() {
func (sl *simpleListener) stop() {
sl.ll.Close()
sl.closed = true
sl.stopGroup.Wait()
close(sl.exitChan)
close(sl.connectionChan)
sl.stopGroup.Wait()
fmt.Println("simpleListener.stop: stopped")
}

Expand Down

0 comments on commit 5b9cc96

Please sign in to comment.