Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Chun-Hung Tseng <[email protected]>
  • Loading branch information
henrybear327 committed Sep 25, 2024
1 parent 85f7a92 commit 10c77b4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/proxy/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ package proxy
import (
"bytes"
"context"
"fmt"
"io"
"log"
"net"
Expand Down Expand Up @@ -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)
}
}

Expand Down Expand Up @@ -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!")
Expand Down

0 comments on commit 10c77b4

Please sign in to comment.