Skip to content

Commit 84bdeb6

Browse files
committed
fixup! fixup! fixup! fixup! add monitor test
1 parent c2274ec commit 84bdeb6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/monitor/monitor_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ func startEcoMonitor(t *testing.T) net.Addr {
6363

6464
go func() {
6565
for {
66-
conn, _ := ln.Accept()
66+
conn, err := ln.Accept()
67+
if err != nil {
68+
return
69+
}
70+
6771
go func() {
6872
defer conn.Close()
6973
_, _ = io.Copy(conn, conn) // Echo server

0 commit comments

Comments
 (0)