Skip to content

Commit b8e3184

Browse files
committed
fix(test): fix test case error
1 parent 565ecb9 commit b8e3184

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ require (
2929
github.com/kelseyhightower/envconfig v1.2.0
3030
github.com/mitchellh/mapstructure v1.1.2 // indirect
3131
github.com/ncw/swift v1.0.20-0.20151102203822-c54732e87b0b // indirect
32-
github.com/opencontainers/runc v0.0.7
32+
github.com/opencontainers/runc v0.0.7 // indirect
3333
github.com/opencontainers/runtime-spec v1.0.2 // indirect
3434
github.com/pborman/uuid v1.2.0
3535
github.com/prometheus/client_golang v1.0.0 // indirect

go.sum

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5h
187187
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
188188
golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b h1:ag/x1USPSsqHud38I9BAC88qdNLDHHtQ4mlgQIZPPNA=
189189
golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
190+
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd h1:xhmwyvizuTgC2qz7ZlMluP20uW+C3Rm0FD/WLDX8884=
190191
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
191192
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
192193
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=

pkg/sshd/server_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ func clientConfig() *ssh.ClientConfig {
4343
Auth: []ssh.AuthMethod{
4444
ssh.Password("password"),
4545
},
46+
HostKeyCallback: func(hostname string, remote net.Addr, key ssh.PublicKey) error {
47+
return nil
48+
},
4649
}
4750
}
4851

0 commit comments

Comments
 (0)