Skip to content

Commit

Permalink
Fix ssh client tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkren committed Aug 5, 2019
1 parent d461356 commit 49b5622
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/therealssh/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"testing"

"github.com/skycoin/dmsg/cipher"
"github.com/skycoin/skycoin/src/util/logging"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

Expand All @@ -16,7 +15,7 @@ import (
func TestClientOpenChannel(t *testing.T) {
pk, _ := cipher.GenerateKeyPair()
conn, dialer := newPipeDialer()
c := &Client{logging.MustGetLogger("therealssh_client"), dialer, newChanList()}
c := &Client{dialer, newChanList()}

type data struct {
ch *SSHChannel
Expand Down Expand Up @@ -47,7 +46,7 @@ func TestClientOpenChannel(t *testing.T) {

func TestClientHandleResponse(t *testing.T) {
pk, _ := cipher.GenerateKeyPair()
c := &Client{logging.MustGetLogger("therealssh_client"), nil, newChanList()}
c := &Client{nil, newChanList()}
in, out := net.Pipe()
errCh := make(chan error)
go func() {
Expand Down

0 comments on commit 49b5622

Please sign in to comment.