Fix AccountRemove test

This commit is contained in:
Andrey Beletsky 2019-05-23 00:58:42 +07:00
parent 15a137c502
commit 630260d0b1

View file

@ -347,10 +347,14 @@ func TestClient_AccountRemove(t *testing.T) {
if err != nil { if err != nil {
t.Error(err) t.Error(err)
} }
if removedAccount.ID != createdAccount.ID {
t.Error("accounts IDs mismatch")
}
_, err = d.SingleAccountList(createdAccount.ID) account, err := d.SingleAccountList(createdAccount.ID)
if !strings.HasPrefix("Couldn't find account", err.Error()) { if !strings.HasPrefix(err.Error(), "Error in daemon: Couldn't find account") {
t.Error("account was not removed") t.Error("account was not removed")
} }
prettyPrint(*removedAccount) fmt.Println(err.Error())
prettyPrint(*account)
} }