Skip to content

Commit db63aee

Browse files
authored
fix: remove database_version_time param from test_instance_list_backups (#609)
1 parent bc5ddc3 commit db63aee

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

‎tests/system/test_backup_api.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,7 @@ def test_multi_create_cancel_update_error_restore_errors(
383383

384384

385385
def test_instance_list_backups(
386-
shared_instance,
387-
shared_database,
388-
second_database,
389-
database_version_time,
390-
backups_to_delete,
386+
shared_instance, shared_database, second_database, backups_to_delete,
391387
):
392388
# Remove un-scrubbed backups FBO count below.
393389
_helpers.scrub_instance_backups(shared_instance)
@@ -400,16 +396,8 @@ def test_instance_list_backups(
400396
)
401397
expire_time_1_stamp = expire_time_1.strftime("%Y-%m-%dT%H:%M:%S.%fZ")
402398

403-
# Backup tests are failing because of timeout. As a temporary fix
404-
# we are increasing db version time to current time.
405-
# Read more: https://github.com/googleapis/python-spanner/issues/496
406-
database_version_time = datetime.datetime.now(datetime.timezone.utc)
407-
408399
backup1 = shared_instance.backup(
409-
backup_id_1,
410-
database=shared_database,
411-
expire_time=expire_time_1,
412-
version_time=database_version_time,
400+
backup_id_1, database=shared_database, expire_time=expire_time_1,
413401
)
414402

415403
expire_time_2 = datetime.datetime.now(datetime.timezone.utc) + datetime.timedelta(

0 commit comments

Comments
 (0)