aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/key_store_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-04-02 04:41:47 +0800
committerFelix Lange <fjl@twurst.com>2016-04-12 21:58:07 +0800
commit6f1ca0bc910b65b517277f72ca52dadcdc713570 (patch)
tree11cd425e341f6952a0142fa0abbb9445ea917b7d /accounts/key_store_test.go
parenta9f26dcd0d14c0cb9f309ebccf81e8f741fc4636 (diff)
downloaddexon-6f1ca0bc910b65b517277f72ca52dadcdc713570.tar
dexon-6f1ca0bc910b65b517277f72ca52dadcdc713570.tar.gz
dexon-6f1ca0bc910b65b517277f72ca52dadcdc713570.tar.bz2
dexon-6f1ca0bc910b65b517277f72ca52dadcdc713570.tar.lz
dexon-6f1ca0bc910b65b517277f72ca52dadcdc713570.tar.xz
dexon-6f1ca0bc910b65b517277f72ca52dadcdc713570.tar.zst
dexon-6f1ca0bc910b65b517277f72ca52dadcdc713570.zip
accounts: add ErrDecrypt
Diffstat (limited to 'accounts/key_store_test.go')
-rw-r--r--accounts/key_store_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/accounts/key_store_test.go b/accounts/key_store_test.go
index 01bf1b50a..b0417c87e 100644
--- a/accounts/key_store_test.go
+++ b/accounts/key_store_test.go
@@ -94,8 +94,8 @@ func TestKeyStorePassphraseDecryptionFail(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- if _, err = ks.GetKey(k1.Address, account.File, "bar"); err == nil {
- t.Fatal("no error for invalid passphrase")
+ if _, err = ks.GetKey(k1.Address, account.File, "bar"); err != ErrDecrypt {
+ t.Fatalf("wrong error for invalid passphrase\ngot %q\nwant %q", err, ErrDecrypt)
}
}