From c0238e70f2eaedbf97134dd0e7bf8c1ce2e65d2f Mon Sep 17 00:00:00 2001 From: czoido Date: Thu, 24 Oct 2024 07:25:23 +0200 Subject: [PATCH] fix test --- test/integration/command_v2/test_cache_save_restore.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/integration/command_v2/test_cache_save_restore.py b/test/integration/command_v2/test_cache_save_restore.py index cc4fb30b127..ead63a32979 100644 --- a/test/integration/command_v2/test_cache_save_restore.py +++ b/test/integration/command_v2/test_cache_save_restore.py @@ -2,6 +2,7 @@ import os import shutil import tarfile +import time import pytest @@ -157,12 +158,15 @@ def test_cache_save_restore_multiple_revisions(): c = TestClient() c.save({"conanfile.py": GenConanfile("pkg", "0.1")}) c.run("create .") + time.sleep(0.01) rrev1 = c.exported_recipe_revision() c.save({"conanfile.py": GenConanfile("pkg", "0.1").with_class_attribute("var=42")}) c.run("create .") + time.sleep(0.01) rrev2 = c.exported_recipe_revision() c.save({"conanfile.py": GenConanfile("pkg", "0.1").with_class_attribute("var=123")}) c.run("create .") + time.sleep(0.01) rrev3 = c.exported_recipe_revision() def check_ordered_revisions(client):