From 1a09d680100ab6fc62849a81aba1bf32c08a2477 Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Wed, 2 Aug 2017 16:20:00 -0400 Subject: [PATCH] Sprinkle majyk retry fairy dust. (#3720) Closes #3510 --- pubsub/tests/system.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pubsub/tests/system.py b/pubsub/tests/system.py index fd70f44165de..bbc4b527db8e 100644 --- a/pubsub/tests/system.py +++ b/pubsub/tests/system.py @@ -348,7 +348,8 @@ def test_create_snapshot(self): # There is no GET method for snapshot, so check existence using # list - after_snapshots = _consume_snapshots(Config.CLIENT) + retry = RetryResult(lambda result: result, max_tries=4) + after_snapshots = retry(_consume_snapshots)(Config.CLIENT) self.assertEqual(len(before_snapshots) + 1, len(after_snapshots)) def full_name(obj):