mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-01 17:49:02 +00:00
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>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user