Fix AccountRemove test
This commit is contained in:
parent
15a137c502
commit
630260d0b1
1 changed files with 7 additions and 3 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue