Skip to content

Commit 0e70fb2

Browse files
make lint
1 parent 0681f78 commit 0e70fb2

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

lib/ssh/common_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,35 +82,35 @@ func TestFindAgreedAlgorithms(t *testing.T) {
8282
}
8383

8484
cases := []testcase{
85-
testcase{
85+
{
8686
name: "standard",
8787
},
8888

89-
testcase{
89+
{
9090
name: "no common hostkey",
9191
serverIn: kexInitMsg{
9292
ServerHostKeyAlgos: []string{"hostkey2"},
9393
},
9494
wantErr: true,
9595
},
9696

97-
testcase{
97+
{
9898
name: "no common kex",
9999
serverIn: kexInitMsg{
100100
KexAlgos: []string{"kex2"},
101101
},
102102
wantErr: true,
103103
},
104104

105-
testcase{
105+
{
106106
name: "no common cipher",
107107
serverIn: kexInitMsg{
108108
CiphersClientServer: []string{"cipher2"},
109109
},
110110
wantErr: true,
111111
},
112112

113-
testcase{
113+
{
114114
name: "client decides cipher",
115115
serverIn: kexInitMsg{
116116
CiphersClientServer: []string{"cipher1", "cipher2"},

lib/ssh/test/multi_auth_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,27 +77,27 @@ func (ctx *multiAuthTestCtx) kbdIntCb(user, instruction string, questions []stri
7777
func TestMultiAuth(t *testing.T) {
7878
testCases := []multiAuthTestCase{
7979
// Test password,publickey authentication, assert that password callback is called 1 time
80-
multiAuthTestCase{
80+
{
8181
authMethods: []string{"password", "publickey"},
8282
expectedPasswordCbs: 1,
8383
},
8484
// Test keyboard-interactive,publickey authentication, assert that keyboard-interactive callback is called 1 time
85-
multiAuthTestCase{
85+
{
8686
authMethods: []string{"keyboard-interactive", "publickey"},
8787
expectedKbdIntCbs: 1,
8888
},
8989
// Test publickey,password authentication, assert that password callback is called 1 time
90-
multiAuthTestCase{
90+
{
9191
authMethods: []string{"publickey", "password"},
9292
expectedPasswordCbs: 1,
9393
},
9494
// Test publickey,keyboard-interactive authentication, assert that keyboard-interactive callback is called 1 time
95-
multiAuthTestCase{
95+
{
9696
authMethods: []string{"publickey", "keyboard-interactive"},
9797
expectedKbdIntCbs: 1,
9898
},
9999
// Test password,password authentication, assert that password callback is called 2 times
100-
multiAuthTestCase{
100+
{
101101
authMethods: []string{"password", "password"},
102102
expectedPasswordCbs: 2,
103103
},

0 commit comments

Comments
 (0)