aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-10-15 15:05:44 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-10-21 10:22:10 +0200
commit7b064b2ba6e62dbcb4d56bad82555a5e1760661d (patch)
tree65325276f72e70d10937410e9c97fc15812ae1f7 /pkg
parentdd564a9d29871f791d7856edf3b38142b5b2c5e3 (diff)
pkg/vcs: fix test
Minimization must call the predicate (otherwise how does it know this config triggers the crash?). This does not matter now, but will matter in future. Update #2171
Diffstat (limited to 'pkg')
-rw-r--r--pkg/vcs/testos.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/vcs/testos.go b/pkg/vcs/testos.go
index 20a63973a..c2957d3a2 100644
--- a/pkg/vcs/testos.go
+++ b/pkg/vcs/testos.go
@@ -34,7 +34,9 @@ func (ctx *testos) Minimize(original, baseline []byte, trace io.Writer,
case "minimize-fails":
return nil, fmt.Errorf("minimization failure")
case "minimize-succeeds":
- return []byte("new-minimized-config"), nil
+ config := []byte("new-minimized-config")
+ pred(config)
+ return config, nil
case "baseline-broken-build":
return []byte("broken-build"), nil
default: