aboutsummaryrefslogtreecommitdiff
path: root/ssh/agent/client_test.go
diff options
context:
space:
mode:
authorNicola Murino <nicola.murino@gmail.com>2023-07-29 03:33:00 +0000
committerGopher Robot <gobot@golang.org>2023-07-31 18:14:41 +0000
commitedc325d13aa98b5b79708f7122a33bf392cdc1a7 (patch)
tree2432106a3e1b2a77f23736908de4b6767e2e0895 /ssh/agent/client_test.go
parenteab931596093977eaac68313fb6020a29ed7653e (diff)
downloadgo-x-crypto-edc325d13aa98b5b79708f7122a33bf392cdc1a7.tar.xz
ssh: fix call to Fatalf from a non-test goroutine
Also fix some redundant type declarations. Change-Id: Iad2950b67b1ec2e2590c59393b8ad15421ed3add GitHub-Last-Rev: 41cf552f11387208491dee7b867050475043b25e GitHub-Pull-Request: golang/crypto#263 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/505798 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: David Chase <drchase@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Filippo Valsorda <filippo@golang.org> Run-TryBot: Filippo Valsorda <filippo@golang.org>
Diffstat (limited to 'ssh/agent/client_test.go')
-rw-r--r--ssh/agent/client_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ssh/agent/client_test.go b/ssh/agent/client_test.go
index c27eaa9..fdc8000 100644
--- a/ssh/agent/client_test.go
+++ b/ssh/agent/client_test.go
@@ -369,7 +369,8 @@ func TestAuth(t *testing.T) {
go func() {
conn, _, _, err := ssh.NewServerConn(a, &serverConf)
if err != nil {
- t.Fatalf("Server: %v", err)
+ t.Errorf("NewServerConn error: %v", err)
+ return
}
conn.Close()
}()