aboutsummaryrefslogtreecommitdiff
path: root/ssh/test/multi_auth_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/test/multi_auth_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/test/multi_auth_test.go')
-rw-r--r--ssh/test/multi_auth_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/ssh/test/multi_auth_test.go b/ssh/test/multi_auth_test.go
index 6c253a7..403d736 100644
--- a/ssh/test/multi_auth_test.go
+++ b/ssh/test/multi_auth_test.go
@@ -77,27 +77,27 @@ func (ctx *multiAuthTestCtx) kbdIntCb(user, instruction string, questions []stri
func TestMultiAuth(t *testing.T) {
testCases := []multiAuthTestCase{
// Test password,publickey authentication, assert that password callback is called 1 time
- multiAuthTestCase{
+ {
authMethods: []string{"password", "publickey"},
expectedPasswordCbs: 1,
},
// Test keyboard-interactive,publickey authentication, assert that keyboard-interactive callback is called 1 time
- multiAuthTestCase{
+ {
authMethods: []string{"keyboard-interactive", "publickey"},
expectedKbdIntCbs: 1,
},
// Test publickey,password authentication, assert that password callback is called 1 time
- multiAuthTestCase{
+ {
authMethods: []string{"publickey", "password"},
expectedPasswordCbs: 1,
},
// Test publickey,keyboard-interactive authentication, assert that keyboard-interactive callback is called 1 time
- multiAuthTestCase{
+ {
authMethods: []string{"publickey", "keyboard-interactive"},
expectedKbdIntCbs: 1,
},
// Test password,password authentication, assert that password callback is called 2 times
- multiAuthTestCase{
+ {
authMethods: []string{"password", "password"},
expectedPasswordCbs: 2,
},