We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1942ba commit 5b4b8faCopy full SHA for 5b4b8fa
1 file changed
pubsub/tests/system.py
@@ -348,7 +348,10 @@ def test_create_snapshot(self):
348
349
# There is no GET method for snapshot, so check existence using
350
# list
351
- retry = RetryResult(lambda result: result, max_tries=4)
+ def retry_predicate(result):
352
+ return len(result) > len(before_snapshots)
353
+
354
+ retry = RetryResult(retry_predicate, max_tries=5)
355
after_snapshots = retry(_consume_snapshots)(Config.CLIENT)
356
self.assertEqual(len(before_snapshots) + 1, len(after_snapshots))
357
@@ -361,7 +364,6 @@ def full_name(obj):
361
364
with self.assertRaises(Conflict):
362
365
snapshot.create()
363
366
-
367
def test_seek(self):
368
TOPIC_NAME = 'seek-e2e' + unique_resource_id('-')
369
topic = Config.CLIENT.topic(TOPIC_NAME,
0 commit comments