TUN-4060: Fix Go Vet warnings (new with go 1.16) where t.Fatalf is called from a test goroutine

This commit is contained in:
Nuno Diegues
2021-03-16 14:47:57 +00:00
parent d67fbbf94f
commit 8432735867
3 changed files with 8 additions and 4 deletions

View File

@@ -81,7 +81,8 @@ func TestStartServer(t *testing.T) {
go func() {
err := Serve(wsConn, listener, shutdownC, options)
if err != nil {
t.Fatalf("Error running server: %v", err)
t.Errorf("Error running server: %v", err)
return
}
}()