From 7e3369e92d154c8ed532b977d5dd541398b5197d Mon Sep 17 00:00:00 2001 From: aur-build Date: Thu, 19 Nov 2026 23:38:28 +0000 Subject: tests: prove the per-append delivery directly on the tail The HTTP test cannot show delivery per append: the stream response is buffered until it ends, so every line lands in one read no matter what the tail is doing, and the sleeps that used to stage the appends proved nothing. The property moves to where it is observable - drive LogTail, append between reads, and each append has to arrive as its own event. The socket test keeps proving the wiring, the headers and the end event. copy_tree now names the file it failed on, which it did not do before. --- tests/common/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/common/mod.rs') diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 4884a19..1399179 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -430,7 +430,9 @@ fn copy_tree(from: &Path, to: &Path) { if entry.file_type().unwrap().is_dir() { copy_tree(&path, &target); } else { - std::fs::copy(&path, &target).unwrap(); + std::fs::copy(&path, &target).unwrap_or_else(|e| { + panic!("copying {} to {}: {e}", path.display(), target.display()) + }); } } } -- cgit v1.2.3