diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-10-15 14:37:45 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-10-15 14:37:45 +0200 |
| commit | 9dd6d1003cf92c0e4e7f23414565314691aa5516 (patch) | |
| tree | 4a399fb3fc822508afbbb9ba75ee499982a9d4ad /packages/meshbay-node/tests/test_scan_settings_policy.py | |
| parent | 37b38e0eb15a79bbda3cd0a1b502669b32e773dc (diff) | |
| download | meshbay-9dd6d1003cf92c0e4e7f23414565314691aa5516.tar.gz | |
test(node): the event-loop disk guard watches os.stat again
test_a_scan_asks_the_disk_nothing_from_the_event_loop patched Path.stat,
and since the indexer learned Windows' long paths it calls
os.stat(long_path(p)) and os.scandir instead: the guard saw no call at all,
and asserting that the calls ran on the indexer's thread failed on an empty
set. It watches os.stat and os.scandir now (Path.stat goes through os.stat
too), counting what the root holds and not the root, whose availability
check runs on the roots' I/O thread. Nothing runs on the loop; a stat added
there makes it fail again.
The node CLI's parser names itself: under `python -m pytest`, Python 3.14
named the program after the module, so test_cli_golden saw "python -m
pytest" in the help. The installed meshbay-node was not affected.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-node/tests/test_scan_settings_policy.py')
0 files changed, 0 insertions, 0 deletions