Skip to content

Commit

Permalink
kill server after first request
Browse files Browse the repository at this point in the history
  • Loading branch information
ninedraft committed Jan 10, 2022
1 parent d207f94 commit 2f1bc88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gemax/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ func dumbServer(ctx context.Context, test *testing.T, tlsCfg *tls.Config) (addr
test.Fatal("reading test data:", errTestData)
}
go func() {
defer func() { _ = listener.Close() }()

var conn, errAccept = listener.Accept()
if errAccept != nil {
test.Log("accepting test connection:", errAccept)
Expand Down

0 comments on commit 2f1bc88

Please sign in to comment.