Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: wjhuang2016 <[email protected]>
  • Loading branch information
wjhuang2016 committed Aug 26, 2022
1 parent 55a47ec commit b466623
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/mock_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ func CreateMockConn(t *testing.T, server *Server) MockConn {
server.clients[cc.connectionID] = cc
cc.server.rwlock.Unlock()
tc.Session.SetSessionManager(server)
tc.Session.Auth(&auth.UserIdentity{Username: "root", Hostname: "localhost"}, nil, nil)
err = tc.Session.Auth(&auth.UserIdentity{Username: "root", Hostname: "localhost"}, nil, nil)
require.NoError(t, err)
return &mockConn{
clientConn: cc,
t: t,
Expand Down

0 comments on commit b466623

Please sign in to comment.