test(server): fix codeql warning on a race

This commit is contained in:
Thibault VINCENT
2026-05-02 14:09:52 +02:00
parent 584ecdb351
commit 83aba2eb57
-1
View File
@@ -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())
}