From d88ed67d2c1e040d55bac0235a070c96405de2ff Mon Sep 17 00:00:00 2001 From: forgedhallpass <13679401+forgedhallpass@users.noreply.github.com> Date: Tue, 12 Oct 2021 20:18:53 +0300 Subject: [PATCH] Do not show AND matcher information in the command line output if debug is not enabled #1081 * integration test fix --- v2/cmd/integration-test/network.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/v2/cmd/integration-test/network.go b/v2/cmd/integration-test/network.go index 04cc70136..8c738537d 100644 --- a/v2/cmd/integration-test/network.go +++ b/v2/cmd/integration-test/network.go @@ -82,7 +82,14 @@ func (h *networkMultiStep) Execute(filePath string) error { if routerErr != nil { return routerErr } - if len(results) != 3 { + + var expectedResultsSize int + if debug { + expectedResultsSize = 3 + } else { + expectedResultsSize = 1 + } + if len(results) != expectedResultsSize { return errIncorrectResultsCount(results) } return nil