mirror of
https://github.com/enix/x509-certificate-exporter.git
synced 2026-08-18 19:47:28 +00:00
test(server): fix codeql warning on a race
This commit is contained in:
@@ -94,6 +94,5 @@ func TestRunGracefulShutdown(t *testing.T) {
|
||||
defer ts.Close()
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 100*time.Millisecond)
|
||||
defer cancel()
|
||||
go cancel()
|
||||
_ = Run(ctx, &http.Server{Addr: "127.0.0.1:0", Handler: srv.Handler}, nopLogger())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user