derp: fix an unchecked error in a test (#17694)

Found by staticcheck, the test was calling derphttp.NewClient but not checking
its error result before doing other things to it.

Updates #cleanup

Change-Id: I4ade35a7de7c473571f176e747866bc0ab5774db
Signed-off-by: M. J. Fromberger <fromberger@tailscale.com>
pull/17699/head
M. J. Fromberger 1 month ago committed by GitHub
parent edb11e0e60
commit 09a2a1048d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -620,6 +620,9 @@ func TestURLDial(t *testing.T) {
}
netMon := netmon.NewStatic()
c, err := derphttp.NewClient(key.NewNode(), "https://"+hostname+"/", t.Logf, netMon)
if err != nil {
t.Errorf("NewClient: %v", err)
}
defer c.Close()
if err := c.Connect(context.Background()); err != nil {

Loading…
Cancel
Save