File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ async function main(argv) {
133
133
// Print successful tests too
134
134
let debug = false ;
135
135
// Run tests in sequentially
136
- let no_headless = false ;
136
+ let headless = true ;
137
137
const options = new Options ( ) ;
138
138
try {
139
139
// This is more convenient that setting fields one by one.
@@ -150,7 +150,7 @@ async function main(argv) {
150
150
}
151
151
if ( opts [ "no_headless" ] ) {
152
152
args . push ( "--no-headless" ) ;
153
- no_headless = true ;
153
+ headless = false ;
154
154
}
155
155
options . parseArguments ( args ) ;
156
156
} catch ( error ) {
@@ -172,7 +172,7 @@ async function main(argv) {
172
172
}
173
173
files . sort ( ) ;
174
174
175
- if ( no_headless ) {
175
+ if ( ! headless ) {
176
176
opts [ "jobs" ] = 1 ;
177
177
console . log ( "`--no-headless` option is active, disabling concurrency for running tests." ) ;
178
178
}
@@ -181,7 +181,7 @@ async function main(argv) {
181
181
182
182
if ( opts [ "jobs" ] < 1 ) {
183
183
process . setMaxListeners ( files . length + 1 ) ;
184
- } else if ( ! no_headless ) {
184
+ } else if ( headless ) {
185
185
process . setMaxListeners ( opts [ "jobs" ] + 1 ) ;
186
186
}
187
187
@@ -226,7 +226,7 @@ async function main(argv) {
226
226
await Promise . race ( tests_queue ) ;
227
227
}
228
228
}
229
- if ( ! no_headless && tests_queue . length > 0 ) {
229
+ if ( tests_queue . length > 0 ) {
230
230
await Promise . all ( tests_queue ) ;
231
231
}
232
232
status_bar . finish ( ) ;
You can’t perform that action at this time.
0 commit comments