Skip to content

Commit

Permalink
test if Pub/Sub client receives at least one message
Browse files Browse the repository at this point in the history
  • Loading branch information
Takashi Matsuo committed Apr 21, 2020
1 parent 30526f3 commit 0ed65f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container_registry/container_analysis/samples_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def test_pubsub(self):
time.sleep(SLEEP_TIME)
job_done.wait(timeout=60)
print('done. msg_count = {}'.format(receiver.msg_count))
assert message_count == receiver.msg_count
assert message_count <= receiver.msg_count
finally:
# clean up
client.delete_subscription(subscription_name)
Expand Down

0 comments on commit 0ed65f3

Please sign in to comment.