diff --git a/lib/runner.js b/lib/runner.js index c60e562a81..5372717b69 100644 --- a/lib/runner.js +++ b/lib/runner.js @@ -134,7 +134,7 @@ function Runner(suite, delay) { this.total = suite.total(); this.failures = 0; this.on(constants.EVENT_TEST_END, function(test) { - if (test.retriedTest() && test.parent) { + if (test.type === 'test' && test.retriedTest() && test.parent) { var idx = test.parent.tests && test.parent.tests.indexOf(test.retriedTest()); if (idx > -1) test.parent.tests[idx] = test;