Skip to content

Commit 3ea60d4

Browse files
committed
Fix TestServerName, require no err
1 parent 3635011 commit 3ea60d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

info_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func TestServerName(t *testing.T) {
6262
srv.Handler = http.HandlerFunc(func(_ http.ResponseWriter, req *http.Request) {
6363
assert.Equal(t, want, ServerName(req.Context()))
6464
})
65-
srv.start()
65+
require.NoError(t, srv.start())
6666
srv.httpServer.Handler.ServeHTTP(nil, httptest.NewRequest(http.MethodGet, "/", nil))
6767
})
6868
}

0 commit comments

Comments
 (0)