Skip to content

Commit

Permalink
test(spanner): add sleep to fix flaky test (#4289)
Browse files Browse the repository at this point in the history
Co-authored-by: larkee <larkee@users.noreply.github.com>
  • Loading branch information
larkee and larkee authored Jul 13, 2020
1 parent a7a5f36 commit 97d6312
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spanner/cloud-client/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 97d6312

Please sign in to comment.