Skip to content

Commit 02e5ef3

Browse files
chore(f): f
1 parent 79146a1 commit 02e5ef3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

apiclient/apiclient_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,16 @@ func TestAccountStatus(t *testing.T) {
327327
cmd := map[string]interface{}{}
328328
cmd["COMMAND"] = "StatusAccount"
329329
r := cl.Request(cmd)
330+
if r.GetDescription() == "Authorization failed" {
331+
t.Error("TestAccountStatus: Please make sure correct credentials are provided")
332+
}
333+
330334
if !r.IsSuccess() {
331-
t.Error("TestLogin1: Expected response to be a success case.")
335+
t.Error("TestAccountStatus: Expected response to be a success case.")
332336
}
333337
rec := r.GetRecord(0)
334338
if rec == nil {
335-
t.Error("TestLogin1: Expected record not to be nil.")
339+
t.Error("TestAccountStatus: Expected record not to be nil.")
336340
}
337341
}
338342

0 commit comments

Comments
 (0)