Skip to content

Commit

Permalink
Update client_documents_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Samuel Jimenez <sjimenezre@gmail.com>
  • Loading branch information
derekahn and eskombro authored May 18, 2020
1 parent db1587b commit 22ce0d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client_documents_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func TestClientDocuments_List(t *testing.T) {
t.Fatal(err)
}

if list[0].ID != "456" {
if len(list) == 0 || list[0].ID != "456" {
t.Fatal("expected to return the document[1]")
}
}
Expand Down

0 comments on commit 22ce0d4

Please sign in to comment.