Do not show AND matcher information in the command line output if debug is not enabled #1081

* integration test fix
dev
forgedhallpass 2021-10-12 20:18:53 +03:00
parent 435ec5cd5d
commit d88ed67d2c
1 changed files with 8 additions and 1 deletions

View File

@ -82,7 +82,14 @@ func (h *networkMultiStep) Execute(filePath string) error {
if routerErr != nil { if routerErr != nil {
return routerErr return routerErr
} }
if len(results) != 3 {
var expectedResultsSize int
if debug {
expectedResultsSize = 3
} else {
expectedResultsSize = 1
}
if len(results) != expectedResultsSize {
return errIncorrectResultsCount(results) return errIncorrectResultsCount(results)
} }
return nil return nil