From 10c77b4cdc49fd4dc2bedbf7b6784df809837500 Mon Sep 17 00:00:00 2001 From: Chun-Hung Tseng Date: Wed, 25 Sep 2024 14:36:34 +0200 Subject: [PATCH] Fix lint Signed-off-by: Chun-Hung Tseng --- pkg/proxy/server_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/proxy/server_test.go b/pkg/proxy/server_test.go index dd291f33c931..f4f8e289b896 100644 --- a/pkg/proxy/server_test.go +++ b/pkg/proxy/server_test.go @@ -17,7 +17,6 @@ package proxy import ( "bytes" "context" - "fmt" "io" "log" "net" @@ -181,7 +180,7 @@ func startHTTPServer(scheme, addr string, tlsInfo transport.TLSInfo, httpServer log.Println("HTTP Server started on", addr) if err := httpServer.ServeTLS(ln, tlsInfo.CertFile, tlsInfo.KeyFile); err != http.ErrServerClosed { // always returns error. ErrServerClosed on graceful close - log.Fatalf(fmt.Sprintf("startHTTPServer ServeTLS(): %v", err)) + log.Fatalf("startHTTPServer ServeTLS(): %v", err) } } @@ -398,7 +397,6 @@ func TestServer_Shutdown(t *testing.T) { if err := s.Close(); err != nil { t.Fatal(err) } - p = nil time.Sleep(200 * time.Millisecond) data := []byte("Hello World!")