From 5cb501c2b32697afaf24fea6359f7c90fe14dcd1 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Sun, 1 May 2022 21:57:33 +0300 Subject: [PATCH] Make remote storage test less flacky --- test_runner/batch_others/test_remote_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_runner/batch_others/test_remote_storage.py b/test_runner/batch_others/test_remote_storage.py index 59a9cfa378..e205f79957 100644 --- a/test_runner/batch_others/test_remote_storage.py +++ b/test_runner/batch_others/test_remote_storage.py @@ -117,7 +117,7 @@ def test_remote_storage_backup_and_restore(zenith_env_builder: ZenithEnvBuilder, detail = client.timeline_detail(UUID(tenant_id), UUID(timeline_id)) assert detail['local'] is not None log.info("Timeline detail after attach completed: %s", detail) - assert lsn_from_hex(detail['local']['last_record_lsn']) == current_lsn + assert lsn_from_hex(detail['local']['last_record_lsn']) >= current_lsn, 'current db Lsn should shoud not be less than the one stored on remote storage' assert not detail['remote']['awaits_download'] pg = env.postgres.create_start('main')