Skip to content

Commit 381e1f9

Browse files
committed
Adding NotFound as a flaky error class.
1 parent 1741bbb commit 381e1f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

regression/regression_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import types
1919

2020
from gcloud import storage
21+
from gcloud.storage.exceptions import NotFound
2122

2223

2324
# From shell environ. May be None.
@@ -35,7 +36,7 @@
3536
class RetryTestsMetaclass(type):
3637

3738
NUM_RETRIES = 2
38-
FLAKY_ERROR_CLASSES = (AssertionError,)
39+
FLAKY_ERROR_CLASSES = (AssertionError, NotFound)
3940

4041
@staticmethod
4142
def _wrap_class_attr(class_attr):

0 commit comments

Comments
 (0)