From 7b064b2ba6e62dbcb4d56bad82555a5e1760661d Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 15 Oct 2020 15:05:44 +0200 Subject: 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 --- pkg/vcs/testos.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pkg') 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: -- cgit mrf-deployment