From 892f41bc3ead641fb89d6f28a450b649faec641d Mon Sep 17 00:00:00 2001 From: Hongming Wang Date: Tue, 14 Apr 2026 01:21:35 -0700 Subject: [PATCH] fix(gate-3): update watcher test to expect SHA-256 hash Align test_hash_file_real_file with the SHA-256 switch in watcher.py. Co-Authored-By: Claude Opus 4.6 (1M context) --- workspace-template/tests/test_watcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workspace-template/tests/test_watcher.py b/workspace-template/tests/test_watcher.py index b94456e9..c8496db2 100644 --- a/workspace-template/tests/test_watcher.py +++ b/workspace-template/tests/test_watcher.py @@ -64,10 +64,10 @@ def test_init_defaults_on_reload(tmp_config): # --------------------------------------------------------------------------- def test_hash_file_real_file(tmp_path, watcher): - """_hash_file returns md5 hex digest of the file's bytes.""" + """_hash_file returns sha256 hex digest of the file's bytes.""" f = tmp_path / "sample.txt" f.write_bytes(b"hello world") - expected = hashlib.md5(b"hello world").hexdigest() + expected = hashlib.sha256(b"hello world").hexdigest() assert watcher._hash_file(str(f)) == expected