Skip to content

Commit e659027

Browse files
committed
type check before calling retriedTest()
1 parent eba6ec7 commit e659027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function Runner(suite, delay) {
134134
this.total = suite.total();
135135
this.failures = 0;
136136
this.on(constants.EVENT_TEST_END, function(test) {
137-
if (test.retriedTest() && test.parent) {
137+
if (test.type === 'test' && test.retriedTest() && test.parent) {
138138
var idx =
139139
test.parent.tests && test.parent.tests.indexOf(test.retriedTest());
140140
if (idx > -1) test.parent.tests[idx] = test;

0 commit comments

Comments
 (0)