From aec378bb361637d41a362b869b158075defbb9fe Mon Sep 17 00:00:00 2001 From: Andrey Beletsky Date: Fri, 18 Oct 2019 12:40:17 +0700 Subject: [PATCH] Fix failing wallet command test --- extras/jsonrpc/daemon_test.go | 2 +- go.mod | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/extras/jsonrpc/daemon_test.go b/extras/jsonrpc/daemon_test.go index 353fa45..3e69c26 100644 --- a/extras/jsonrpc/daemon_test.go +++ b/extras/jsonrpc/daemon_test.go @@ -640,7 +640,7 @@ func TestClient_WalletList(t *testing.T) { if err == nil { t.Fatalf("wallet %v was unexpectedly found", id) } - if err.Error() != fmt.Sprintf("Error in daemon: Couldn't find wallet: %v.", id) { + if !strings.Contains(err.Error(), fmt.Sprintf("Couldn't find wallet: %v.", id)) { t.Fatal(err) } diff --git a/go.mod b/go.mod index 897e82b..e2f4647 100644 --- a/go.mod +++ b/go.mod @@ -42,7 +42,6 @@ require ( golang.org/x/sys v0.0.0-20191009170203-06d7bd2c5f4f // indirect golang.org/x/text v0.3.2 // indirect golang.org/x/time v0.0.0-20190921001708-c4c64cad1fd0 - google.golang.org/appengine v1.4.0 // indirect google.golang.org/genproto v0.0.0-20191009194640-548a555dbc03 // indirect google.golang.org/grpc v1.24.0 gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect