From 30ad4fcc43ec117a25178d15533cabb64ac297db Mon Sep 17 00:00:00 2001 From: Andrea Franz Date: Wed, 14 Nov 2018 09:23:45 +0100 Subject: [PATCH] fix secure channel test --- lightwallet/secure_channel_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lightwallet/secure_channel_test.go b/lightwallet/secure_channel_test.go index ca051f7..3622628 100644 --- a/lightwallet/secure_channel_test.go +++ b/lightwallet/secure_channel_test.go @@ -1,6 +1,7 @@ package lightwallet import ( + "errors" "testing" "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) { fc.lastCmd = cmd - return nil, nil + return nil, errors.New("test error") } func TestSecureChannel_Send(t *testing.T) {