Skip to content

Commit c55eb51

Browse files
authored
Merge pull request #2295 from dhermes/pubsub-sys-test-tweak
Correctly clean-up subscription in pubsub system test.
2 parents f834020 + e9ae646 commit c55eb51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system_tests/pubsub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ def _found_orphan(result):
290290
if subscription.name == ORPHANED]
291291
self.assertEqual(len(created), 1)
292292
orphaned = created[0]
293+
self.to_delete.append(orphaned)
293294

294295
def _no_topic(instance):
295296
return instance.topic is None
@@ -298,4 +299,3 @@ def _no_topic(instance):
298299
retry_until_no_topic(orphaned.reload)()
299300

300301
self.assertTrue(orphaned.topic is None)
301-
orphaned.delete()

0 commit comments

Comments
 (0)