mirror of
https://github.com/mjl-/mox.git
synced 2024-12-27 08:53:48 +03:00
add missing check for err variable in test
This commit is contained in:
parent
713d781bad
commit
d25131f2f2
1 changed files with 1 additions and 0 deletions
|
@ -226,6 +226,7 @@ func TestWebsocket(t *testing.T) {
|
||||||
t.Helper()
|
t.Helper()
|
||||||
|
|
||||||
req, err := http.NewRequest(method, httpurl, nil)
|
req, err := http.NewRequest(method, httpurl, nil)
|
||||||
|
tcheck(t, err, "http newrequest")
|
||||||
for k, v := range reqhdrs {
|
for k, v := range reqhdrs {
|
||||||
req.Header.Add(k, v)
|
req.Header.Add(k, v)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue