diff --git a/spanner/cloud-client/snippets_test.py b/spanner/cloud-client/snippets_test.py index 49a11dce91a4..0ec3ef42b7c0 100644 --- a/spanner/cloud-client/snippets_test.py +++ b/spanner/cloud-client/snippets_test.py @@ -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