aboutsummaryrefslogtreecommitdiff
path: root/internal/engine/property_test.go
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-09-14 22:39:27 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-09-14 22:39:27 +0200
commit9e65644f473d75ceb7e3ef67302189eeaba0f922 (patch)
tree6cde9486fb55e035f5e9041f5ba2cd579c9c8ff2 /internal/engine/property_test.go
parent8227de6a887c8600746b06d1287cb2b00de77e28 (diff)
downloadkrino-9e65644f473d75ceb7e3ef67302189eeaba0f922.tar.gz
krino-9e65644f473d75ceb7e3ef67302189eeaba0f922.zip
plan 10: missing and weak tests (per-step logging, trash path, fuzz oracle, w after error)
Diffstat (limited to 'internal/engine/property_test.go')
-rw-r--r--internal/engine/property_test.go4
1 files changed, 2 insertions, 2 deletions
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
}