aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/key_store_passphrase_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-03-03 07:46:56 +0800
committerFelix Lange <fjl@twurst.com>2016-04-12 21:56:49 +0800
commit4e6d8b348d864c8af74e0aca114bf730e42a160a (patch)
treeeca8056c836109c0b63a81616bc7c9297a198f9b /accounts/key_store_passphrase_test.go
parent85e6c40c0081bd0db80448640db648887804010c (diff)
downloadgo-tangerine-4e6d8b348d864c8af74e0aca114bf730e42a160a.tar
go-tangerine-4e6d8b348d864c8af74e0aca114bf730e42a160a.tar.gz
go-tangerine-4e6d8b348d864c8af74e0aca114bf730e42a160a.tar.bz2
go-tangerine-4e6d8b348d864c8af74e0aca114bf730e42a160a.tar.lz
go-tangerine-4e6d8b348d864c8af74e0aca114bf730e42a160a.tar.xz
go-tangerine-4e6d8b348d864c8af74e0aca114bf730e42a160a.tar.zst
go-tangerine-4e6d8b348d864c8af74e0aca114bf730e42a160a.zip
accounts: fix go vet warnings
Diffstat (limited to 'accounts/key_store_passphrase_test.go')
-rw-r--r--accounts/key_store_passphrase_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/accounts/key_store_passphrase_test.go b/accounts/key_store_passphrase_test.go
index afa751d44..6ff3ae422 100644
--- a/accounts/key_store_passphrase_test.go
+++ b/accounts/key_store_passphrase_test.go
@@ -32,7 +32,7 @@ func TestKeyEncryptDecrypt(t *testing.T) {
for i := 0; i < 3; i++ {
// Try a bad password first
if _, err := DecryptKey(keyjson, password+"bad"); err == nil {
- t.Error("test %d: json key decrypted with bad password", i)
+ t.Errorf("test %d: json key decrypted with bad password", i)
}
// Decrypt with the correct password
key, err := DecryptKey(keyjson, password)
@@ -45,7 +45,7 @@ func TestKeyEncryptDecrypt(t *testing.T) {
// Recrypt with a new password and start over
password += "new data appended"
if keyjson, err = EncryptKey(key, password, LightScryptN, LightScryptP); err != nil {
- t.Errorf("test %d: failed to recrypt key %v", err)
+ t.Errorf("test %d: failed to recrypt key %v", i, err)
}
}
}