add missing check for err variable in test

This commit is contained in:
Mechiel Lukkien 2023-05-31 21:57:46 +02:00
parent 713d781bad
commit d25131f2f2
No known key found for this signature in database

View file

@ -226,6 +226,7 @@ func TestWebsocket(t *testing.T) {
t.Helper()
req, err := http.NewRequest(method, httpurl, nil)
tcheck(t, err, "http newrequest")
for k, v := range reqhdrs {
req.Header.Add(k, v)
}