We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f76024 commit 8202052Copy full SHA for 8202052
flexmetrics_test.go
@@ -82,8 +82,7 @@ func TestNew(t *testing.T) {
82
83
func TestOption_WithServer(t *testing.T) {
84
myServer := &http.Server{ReadHeaderTimeout: time.Second}
85
- s := New(WithServer(myServer))
86
- if s.server != myServer {
+ if s := New(WithServer(myServer)); s.server != myServer {
87
t.Error("WithServer option should set the provided http server")
88
}
89
0 commit comments