Skip to content

Commit 493a5ea

Browse files
e2e: improved error logs
Signed-off-by: oleksandr-codefresh <oleksandr.saulyak@octopus.com>
1 parent 871c953 commit 493a5ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/e2e/fixture/app/expectation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ func Success(message string, matchers ...func(string, string) bool) Expectation
343343
return failed, "error"
344344
}
345345
if !match(c.actions.lastOutput, message) {
346-
return failed, fmt.Sprintf("output did not contain '%s'", message)
346+
return failed, fmt.Sprintf("output did not contain '%s', but got: '%s'", message, c.actions.lastOutput)
347347
}
348348
return succeeded, fmt.Sprintf("no error and output contained '%s'", message)
349349
}

0 commit comments

Comments
 (0)