From 008ae54a55e836bcb6777624258c6db6b09b24d6 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 1 Aug 2024 17:20:38 -0300 Subject: [PATCH] fix: Add time.sleep to wait for file changes to be detected --- tests/basic/test_repo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/basic/test_repo.py b/tests/basic/test_repo.py index 48f0dc093..1853ff6fc 100644 --- a/tests/basic/test_repo.py +++ b/tests/basic/test_repo.py @@ -1,6 +1,7 @@ import os import platform import tempfile +import time import unittest from pathlib import Path from unittest.mock import patch @@ -307,6 +308,7 @@ class TestRepo(unittest.TestCase): self.assertIn(str(fname2), fnames) aiderignore.write_text("new.txt\n") + time.sleep(2) # new.txt should be gone! fnames = git_repo.get_tracked_files()