Skip to content

Commit

Permalink
tests(compute): fix failing test (#4549)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgiyekkert committed Aug 3, 2021
1 parent e9ddbfe commit 6e79385
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions compute/apiv1/smoke_test.go
Expand Up @@ -281,10 +281,11 @@ func TestPaginationWithMaxRes(t *testing.T) {
for err == nil {
if element.GetName() == "nvidia-tesla-t4" {
found = true
break
}
element, err = itr.Next()
}
if err != iterator.Done {
if err != nil && err != iterator.Done {
t.Fatal(err)
}
if !found {
Expand Down Expand Up @@ -316,7 +317,7 @@ func TestPaginationDefault(t *testing.T) {
}
element, err = itr.Next()
}
if err != iterator.Done {
if err != nil && err != iterator.Done {
t.Fatal(err)
}
if !found {
Expand Down

0 comments on commit 6e79385

Please sign in to comment.