test(runner): pin both guard writes to what the spec reads

deleting lastAction.Relaunched or lastAction.Applied left the whole suite
green, so the only producer of the two fields every spec-side guard reads
had nothing holding it. both now assert the value out of the trace.
This commit is contained in:
pj committed 2026-08-16 01:01:03 +05:30
1 parent 0a7afbabec
commit 8e37be2afd
2 files changed
+80 -2

No files matched your search

+4 -2
View File
@@ -14,6 +14,7 @@ import (
"github.com/priyanshujain/sanderling/internal/driver"
mockdriver "github.com/priyanshujain/sanderling/internal/driver/mock"
"github.com/priyanshujain/sanderling/internal/trace"
)
// homeWithRows is one settled route whose list holds rows. A row arriving
@@ -485,8 +486,9 @@ func TestRunner_OnlyAChangeOfShapeCostsAStepItsVerdict(t *testing.T) {
}
type traceLine struct {
Step int `json:"step"`
Violations []string `json:"violations"`
Step int `json:"step"`
Violations []string `json:"violations"`
ExtractorChanges map[string]trace.ExtractorChange `json:"extractor_changes"`
}
func traceSteps(t *testing.T, directory string) []traceLine {