Skip to content

Commit

Permalink
test(spanner): add sleep to fix flaky test [(#4289)](GoogleCloudPlatf…
Browse files Browse the repository at this point in the history
  • Loading branch information
larkee and larkee authored Jul 13, 2020
1 parent aebfbad commit a29be24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions samples/samples/snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,9 @@ def test_query_data_with_string(capsys):


def test_query_data_with_timestamp_parameter(capsys):
# Wait 5 seconds to avoid a time drift issue for the next query:
# https://github.com/GoogleCloudPlatform/python-docs-samples/issues/4197.
time.sleep(5)
snippets.query_data_with_timestamp_parameter(INSTANCE_ID, DATABASE_ID)
out, _ = capsys.readouterr()
assert 'VenueId: 4, VenueName: Venue 4, LastUpdateTime:' in out
Expand Down

0 comments on commit a29be24

Please sign in to comment.