fix: race condition test

This commit is contained in:
2026-07-15 12:23:33 +07:00
parent 6ec57268db
commit 6aa8c3bd48
5 changed files with 50 additions and 10 deletions
+1 -2
View File
@@ -63,8 +63,7 @@ func TestHTTPSServer_Serve(t *testing.T) {
go func() {
time.Sleep(100 * time.Millisecond)
err = listener.Close()
assert.NoError(t, err)
_ = listener.Close()
}()
err = srv.Serve(listener)