Skip to content

Commit 38b406e

Browse files
author
Takashi Matsuo
authored
fix(datastore): properly retry the test (GoogleCloudPlatform#5496)
fixes GoogleCloudPlatform#5495
1 parent 8f35ccd commit 38b406e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datastore/cloud-client/admin_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import os
1515

1616
import backoff
17+
from google.api_core.exceptions import RetryError
1718
import pytest
1819

1920
import admin
@@ -40,7 +41,7 @@ def test_get_index(self):
4041
def test_list_index(self):
4142
assert admin.list_indexes(PROJECT)
4243

43-
@backoff.on_exception(backoff.expo, AssertionError, max_tries=3)
44+
@backoff.on_exception(backoff.expo, RetryError, max_tries=3)
4445
def test_export_import_entities(self):
4546
response = admin.export_entities(PROJECT, "gs://" + BUCKET)
4647
assert response

0 commit comments

Comments
 (0)