mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 20:35:00 +00:00
fix: Add time.sleep to wait for file changes to be detected
This commit is contained in:
parent
ca0ee9e9ba
commit
008ae54a55
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue