Skip to content

Commit

Permalink
Revert "Revert "Always send output to flake callback""
Browse files Browse the repository at this point in the history
This reverts commit db496ec.
  • Loading branch information
NickTomlin committed Feb 5, 2019
1 parent 8be0cd0 commit 6bcf5eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function flake (options: object | undefined = {}, callback: Function | undefined

function handleTestEnd (status: number, output = '') {
if (status === 0) {
callback(status)
callback(status, output)
} else {
if (++testAttempt <= parsedOptions.maxAttempts) {
logger.log('info', `\nUsing ${parser.name} to parse output\n`)
Expand Down

0 comments on commit 6bcf5eb

Please sign in to comment.