Skip to content
Permalink
Browse files
fix: remove database_version_time param from test_instance_list_backu…
…ps (#609)
  • Loading branch information
vi3k6i5 committed Oct 4, 2021
1 parent bc5ddc3 commit db63aee2b15fd812d78d980bc302d9a217ca711e
Showing with 2 additions and 14 deletions.
  1. +2 −14 tests/system/test_backup_api.py
@@ -383,11 +383,7 @@ def test_multi_create_cancel_update_error_restore_errors(


def test_instance_list_backups(
shared_instance,
shared_database,
second_database,
database_version_time,
backups_to_delete,
shared_instance, shared_database, second_database, backups_to_delete,
):
# Remove un-scrubbed backups FBO count below.
_helpers.scrub_instance_backups(shared_instance)
@@ -400,16 +396,8 @@ def test_instance_list_backups(
)
expire_time_1_stamp = expire_time_1.strftime("%Y-%m-%dT%H:%M:%S.%fZ")

# Backup tests are failing because of timeout. As a temporary fix
# we are increasing db version time to current time.
# Read more: https://github.com/googleapis/python-spanner/issues/496
database_version_time = datetime.datetime.now(datetime.timezone.utc)

backup1 = shared_instance.backup(
backup_id_1,
database=shared_database,
expire_time=expire_time_1,
version_time=database_version_time,
backup_id_1, database=shared_database, expire_time=expire_time_1,
)

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

0 comments on commit db63aee

Please sign in to comment.