Skip to content

Commit ce03607

Browse files
committed
Cleanup code
1 parent 859f474 commit ce03607

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/codecept.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class Codecept {
185185
}
186186

187187
if (this.opts.shuffle) {
188-
this.shuffle(this.testFiles)
188+
this.testFiles = this.shuffle(this.testFiles)
189189
}
190190

191191
if (this.opts.shard) {
@@ -206,6 +206,8 @@ class Codecept {
206206
arrayToShuffle[j] = arrayToShuffle[i]
207207
arrayToShuffle[i] = temp
208208
}
209+
210+
return arrayToShuffle
209211
}
210212

211213
/**

0 commit comments

Comments
 (0)