File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -137,30 +137,30 @@ exports.Server = function Server(bsClient, workers) {
137
137
if ( worker ) {
138
138
bsClient . takeScreenshot ( worker . id , function ( error , screenshot ) {
139
139
if ( ! error && screenshot . url ) {
140
- console . log ( '[%s] Screenshot: %s' , worker . string , screenshot . url ) ;
140
+ console . log ( '[%s] Screenshot: %s' , worker . string , screenshot . url ) ;
141
141
}
142
142
143
- bsClient . terminateWorker ( worker . id , function ( ) {
144
- if ( ! workers [ uuid ] ) {
145
- return ;
146
- }
143
+ bsClient . terminateWorker ( worker . id , function ( ) {
144
+ if ( ! workers [ uuid ] ) {
145
+ return ;
146
+ }
147
147
148
- console . log ( '[%s] Terminated' , worker . string ) ;
148
+ console . log ( '[%s] Terminated' , worker . string ) ;
149
149
150
- clearTimeout ( workers [ uuid ] . activityTimeout ) ;
151
- delete workers [ uuid ] ;
150
+ clearTimeout ( workers [ uuid ] . activityTimeout ) ;
151
+ delete workers [ uuid ] ;
152
152
153
- if ( utils . objectSize ( workers ) === 0 ) {
154
- console . log ( "All tests done, failures: %d." , status ) ;
153
+ if ( utils . objectSize ( workers ) === 0 ) {
154
+ console . log ( "All tests done, failures: %d." , status ) ;
155
155
156
- if ( status > 0 ) {
157
- status = 1 ;
158
- }
156
+ if ( status > 0 ) {
157
+ status = 1 ;
158
+ }
159
159
160
- process . exit ( status ) ;
161
- }
160
+ process . exit ( status ) ;
161
+ }
162
+ } ) ;
162
163
} ) ;
163
- } ) ;
164
164
}
165
165
166
166
response . end ( ) ;
You can’t perform that action at this time.
0 commit comments