Skip to content

Commit

Permalink
Always send output to flake callback
Browse files Browse the repository at this point in the history
This change ensures that the protractor flake callback will always receive the output log even if the first test pass succeeds with no failures.
  • Loading branch information
mike-eason committed Oct 22, 2018
1 parent 97640ab commit 53de30b
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 53de30b

Please sign in to comment.