Skip to content

Commit

Permalink
fix: make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ladydascalie committed Jan 11, 2023
1 parent 7f76024 commit 8202052
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flexmetrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ func TestNew(t *testing.T) {

func TestOption_WithServer(t *testing.T) {
myServer := &http.Server{ReadHeaderTimeout: time.Second}
s := New(WithServer(myServer))
if s.server != myServer {
if s := New(WithServer(myServer)); s.server != myServer {
t.Error("WithServer option should set the provided http server")
}
}
Expand Down

0 comments on commit 8202052

Please sign in to comment.