Skip to content

Commit

Permalink
Merge pull request googleapis#2295 from dhermes/pubsub-sys-test-tweak
Browse files Browse the repository at this point in the history
Correctly clean-up subscription in pubsub system test.
  • Loading branch information
tseaver authored Sep 10, 2016
2 parents f834020 + e9ae646 commit c55eb51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system_tests/pubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ def _found_orphan(result):
if subscription.name == ORPHANED]
self.assertEqual(len(created), 1)
orphaned = created[0]
self.to_delete.append(orphaned)

def _no_topic(instance):
return instance.topic is None
Expand All @@ -298,4 +299,3 @@ def _no_topic(instance):
retry_until_no_topic(orphaned.reload)()

self.assertTrue(orphaned.topic is None)
orphaned.delete()

0 comments on commit c55eb51

Please sign in to comment.