Skip to content

Commit

Permalink
fix: add pause for the staleness test (#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaFaer committed Jul 5, 2022
1 parent 18c4f1f commit bb7f1db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/system/test_dbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import pickle
import pkg_resources
import pytest
import time

from google.cloud import spanner_v1
from google.cloud._helpers import UTC
Expand Down Expand Up @@ -447,6 +448,7 @@ def test_staleness(shared_instance, dbapi_database):
cursor = conn.cursor()

before_insert = datetime.datetime.utcnow().replace(tzinfo=UTC)
time.sleep(0.25)

cursor.execute(
"""
Expand Down

0 comments on commit bb7f1db

Please sign in to comment.