fix secure channel test

This commit is contained in:
Andrea Franz 2018-11-14 09:23:45 +01:00
parent 396642476a
commit 30ad4fcc43
No known key found for this signature in database
GPG Key ID: 4F0D2F2D9DE7F29D
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package lightwallet package lightwallet
import ( import (
"errors"
"testing" "testing"
"github.com/status-im/hardware-wallet-go/apdu" "github.com/status-im/hardware-wallet-go/apdu"
@ -14,7 +15,7 @@ type fakeChannel struct {
func (fc *fakeChannel) Send(cmd *apdu.Command) (*apdu.Response, error) { func (fc *fakeChannel) Send(cmd *apdu.Command) (*apdu.Response, error) {
fc.lastCmd = cmd fc.lastCmd = cmd
return nil, nil return nil, errors.New("test error")
} }
func TestSecureChannel_Send(t *testing.T) { func TestSecureChannel_Send(t *testing.T) {