diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-01-17 19:25:36 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-01-17 19:25:36 +0800 |
commit | 230530f5ea71f45c5d89f62126e60d24635136d5 (patch) | |
tree | e1f64e3903b85ac8be400bdcec94b5cf9bbc0a24 /accounts/accounts_test.go | |
parent | 26d385c18b5eb003d9a69ff618c78acbe594db44 (diff) | |
download | go-tangerine-230530f5ea71f45c5d89f62126e60d24635136d5.tar go-tangerine-230530f5ea71f45c5d89f62126e60d24635136d5.tar.gz go-tangerine-230530f5ea71f45c5d89f62126e60d24635136d5.tar.bz2 go-tangerine-230530f5ea71f45c5d89f62126e60d24635136d5.tar.lz go-tangerine-230530f5ea71f45c5d89f62126e60d24635136d5.tar.xz go-tangerine-230530f5ea71f45c5d89f62126e60d24635136d5.tar.zst go-tangerine-230530f5ea71f45c5d89f62126e60d24635136d5.zip |
accounts, mobile: make account manager API a bit more uniform
Diffstat (limited to 'accounts/accounts_test.go')
-rw-r--r-- | accounts/accounts_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/accounts/accounts_test.go b/accounts/accounts_test.go index f276059e2..b3ab87d50 100644 --- a/accounts/accounts_test.go +++ b/accounts/accounts_test.go @@ -53,14 +53,14 @@ func TestManager(t *testing.T) { if err := am.Update(a, "foo", "bar"); err != nil { t.Errorf("Update error: %v", err) } - if err := am.DeleteAccount(a, "bar"); err != nil { - t.Errorf("DeleteAccount error: %v", err) + if err := am.Delete(a, "bar"); err != nil { + t.Errorf("Delete error: %v", err) } if common.FileExist(a.File) { - t.Errorf("account file %s should be gone after DeleteAccount", a.File) + t.Errorf("account file %s should be gone after Delete", a.File) } if am.HasAddress(a.Address) { - t.Errorf("HasAccount(%x) should've returned true after DeleteAccount", a.Address) + t.Errorf("HasAccount(%x) should've returned true after Delete", a.Address) } } |