Skip to content

Commit bb7f1db

Browse files
authored
fix: add pause for the staleness test (#762)
1 parent 18c4f1f commit bb7f1db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/system/test_dbapi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import pickle
1818
import pkg_resources
1919
import pytest
20+
import time
2021

2122
from google.cloud import spanner_v1
2223
from google.cloud._helpers import UTC
@@ -447,6 +448,7 @@ def test_staleness(shared_instance, dbapi_database):
447448
cursor = conn.cursor()
448449

449450
before_insert = datetime.datetime.utcnow().replace(tzinfo=UTC)
451+
time.sleep(0.25)
450452

451453
cursor.execute(
452454
"""

0 commit comments

Comments
 (0)