From 686937825314f8c69ca7f31c54fb8df01d704690 Mon Sep 17 00:00:00 2001 From: Boshi Lian Date: Wed, 9 Jan 2019 04:07:06 -0800 Subject: [PATCH] fix build in sshpiper_test --- sshpiperd/sshpiperd_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sshpiperd/sshpiperd_test.go b/sshpiperd/sshpiperd_test.go index 63ea5f8f..9d1cd38f 100644 --- a/sshpiperd/sshpiperd_test.go +++ b/sshpiperd/sshpiperd_test.go @@ -174,7 +174,7 @@ func Test_installDriver(t *testing.T) { upstreamNilName = fmt.Sprintf("un_%v", time.Now().UTC().UnixNano()) ) - findUpstream := func(conn ssh.ConnMetadata) (net.Conn, *ssh.AuthPipe, error) { + findUpstream := func(conn ssh.ConnMetadata, challengeContext ssh.AdditionalChallengeContext) (net.Conn, *ssh.AuthPipe, error) { return nil, nil, nil } @@ -206,8 +206,8 @@ func Test_installDriver(t *testing.T) { testplugin: testplugin{ name: upstreamName, }, - h: func(conn ssh.ConnMetadata, client ssh.KeyboardInteractiveChallenge) (bool, error) { - return true, nil + h: func(conn ssh.ConnMetadata, client ssh.KeyboardInteractiveChallenge) (ssh.AdditionalChallengeContext, error) { + return nil, nil }, }) @@ -236,7 +236,7 @@ func Test_installDriver(t *testing.T) { t.Errorf("install failed %v", err) } - if _, _, err := piper.FindUpstream(nil); err != nil { + if _, _, err := piper.FindUpstream(nil, nil); err != nil { t.Errorf("install wrong func") }