From b37d175e59cda8c6afd6b4b1d6b7ed921dc59279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Thu, 8 Dec 2016 14:42:31 +0200 Subject: accounts, internal, mobile: polish accounts API, extend Android tests --- accounts/accounts_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'accounts/accounts_test.go') diff --git a/accounts/accounts_test.go b/accounts/accounts_test.go index 2e5f2b44a..51ca6c256 100644 --- a/accounts/accounts_test.go +++ b/accounts/accounts_test.go @@ -95,7 +95,7 @@ func TestSignWithPassphrase(t *testing.T) { t.Fatal("expected account to be locked") } - _, err = am.SignWithPassphrase(acc.Address, pass, testSigData) + _, err = am.SignWithPassphrase(acc, pass, testSigData) if err != nil { t.Fatal(err) } @@ -104,7 +104,7 @@ func TestSignWithPassphrase(t *testing.T) { t.Fatal("expected account to be locked") } - if _, err = am.SignWithPassphrase(acc.Address, "invalid passwd", testSigData); err == nil { + if _, err = am.SignWithPassphrase(acc, "invalid passwd", testSigData); err == nil { t.Fatal("expected SignHash to fail with invalid password") } } -- cgit v1.2.3