From 9e65644f473d75ceb7e3ef67302189eeaba0f922 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Mon, 14 Sep 2026 22:39:27 +0200 Subject: plan 10: missing and weak tests (per-step logging, trash path, fuzz oracle, w after error) --- internal/engine/property_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/engine/property_test.go') diff --git a/internal/engine/property_test.go b/internal/engine/property_test.go index 135c20a..8a43d7b 100644 --- a/internal/engine/property_test.go +++ b/internal/engine/property_test.go @@ -135,7 +135,7 @@ func contentCounts(snap map[string]string) map[string]int { // checkApplyUndo builds c in a sandbox, applies every chain, checks nothing // was lost, undoes the run and checks the home directory - files and -// directories - is as it was. It reports whether any file was applied. +// directories - is as it was. It reports whether any step actually ran. func checkApplyUndo(t *testing.T, c propertyCase) bool { h := sandbox(t) old := time.Date(2026, 3, 1, 12, 0, 0, 0, time.UTC) @@ -253,5 +253,5 @@ func checkApplyUndo(t *testing.T, c propertyCase) bool { } } } - return true + return res.Applied > 0 } -- cgit v1.3