CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 18:26:22 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/karma-runner/karma.git
etag: W/"2cd9875fbf48892d50f2dea726bdd675"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=7PB0KSLF3KIb8HJO7IiC3znC9gRh0%2B2Boh8%2FgxW28J4Y7e5AJ%2FN96hfE46UbeOrF1SxHw7Cf1IoMhIKnjxRmzXtVYwZgkWHbXcWi2eWUAzm6UgFpjvIQCOh1xW1LWgueA0zco3c8J03%2BAVcIvsq9KbN2jTmqcdlUUPqlL129Ilw1mpxGKAW0XmaPj9go8pmvNt7mML9rsGR6aeQT73pcLB7HvvGjq%2BqWx5HTkspdBnHM3PGowNSrcH%2BUWpsvQaoRfC%2FXPiy%2FTDYhxxMCgXIceg%3D%3D--e6xIzNnSWLJBplDG--qurG7FZRr0eyTzab3baz6Q%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1549454140.1760207182; Path=/; Domain=github.com; Expires=Sun, 11 Oct 2026 18:26:22 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 11 Oct 2026 18:26:22 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: C702:AD439:93758F:C19BCE:68EAA14E
fix(server): clean up close-server logic (#3607) · karma-runner/karma@3fca456 · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit 3fca456
authored
fix(server): clean up close-server logic (#3607)
The main change in behavior is the removal of `dieOnError` method. Previously Karma would send SIGINT to its own process and then trigger clean up logic upon receiving this signal. It is a pretty convoluted way to trigger shutdown. This commit extracts clean up logic into the `_close()` method and calls this method directly everywhere.
This change solves two issues:
- Makes life easier for other tools (like Angular CLI), which use Karma programmatically from another process and killing whole process on Karma error may not be the most convenient behavior. Instead Karma will clean up all its resources and notify caller using the `done` callback.
- Allows to remove last Grunt bits in the future PR. When running unit tests without Grunt wrapper the SIGINT is received by the Mocha process, which stops tests execution midway.1 parent 1c9c2de commit 3fca456Copy full SHA for 3fca456
File tree
Expand file treeCollapse file tree
2 files changed
+93
-154
lines changedFilter options
- lib
- test/unit
Expand file treeCollapse file tree
2 files changed
+93
-154
lines changedCollapse file: lib/server.js
+64-56Lines changed: 64 additions & 56 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
105 |
| - | |
106 |
| - | |
107 |
| - | |
108 |
| - | |
109 |
| - | |
110 |
| - | |
111 | 105 |
| |
112 | 106 |
| |
113 | 107 |
| |
| |||
122 | 116 |
| |
123 | 117 |
| |
124 | 118 |
| |
125 |
| - | |
| 119 | + | |
| 120 | + | |
126 | 121 |
| |
127 | 122 |
| |
128 | 123 |
| |
| |||
187 | 182 |
| |
188 | 183 |
| |
189 | 184 |
| |
190 |
| - | |
| 185 | + | |
| 186 | + | |
191 | 187 |
| |
192 | 188 |
| |
193 | 189 |
| |
| |||
206 | 202 |
| |
207 | 203 |
| |
208 | 204 |
| |
209 |
| - | |
| 205 | + | |
| 206 | + | |
210 | 207 |
| |
211 | 208 |
| |
212 | 209 |
| |
| |||
302 | 299 |
| |
303 | 300 |
| |
304 | 301 |
| |
305 |
| - | |
| 302 | + | |
306 | 303 |
| |
307 |
| - | |
| 304 | + | |
308 | 305 |
| |
309 | 306 |
| |
310 | 307 |
| |
| |||
332 | 329 |
| |
333 | 330 |
| |
334 | 331 |
| |
335 |
| - | |
| 332 | + | |
336 | 333 |
| |
337 |
| - | |
| 334 | + | |
338 | 335 |
| |
339 | 336 |
| |
340 | 337 |
| |
| |||
350 | 347 |
| |
351 | 348 |
| |
352 | 349 |
| |
353 |
| - | |
354 |
| - | |
355 |
| - | |
356 |
| - | |
357 |
| - | |
358 |
| - | |
359 |
| - | |
360 |
| - | |
361 |
| - | |
362 |
| - | |
363 |
| - | |
364 |
| - | |
365 |
| - | |
366 |
| - | |
367 |
| - | |
368 |
| - | |
369 |
| - | |
370 |
| - | |
371 |
| - | |
372 |
| - | |
373 |
| - | |
374 |
| - | |
375 |
| - | |
376 |
| - | |
377 |
| - | |
378 |
| - | |
379 |
| - | |
380 |
| - | |
381 |
| - | |
382 |
| - | |
383 |
| - | |
384 |
| - | |
385 |
| - | |
386 |
| - | |
387 |
| - | |
388 |
| - | |
389 |
| - | |
390 |
| - | |
391 |
| - | |
392 |
| - | |
393 |
| - | |
| 350 | + | |
| 351 | + | |
394 | 352 |
| |
395 | 353 |
| |
396 |
| - | |
397 |
| - | |
398 | 354 |
| |
| 355 | + | |
| 356 | + | |
399 | 357 |
| |
400 | 358 |
| |
401 | 359 |
| |
| |||
429 | 387 |
| |
430 | 388 |
| |
431 | 389 |
| |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
432 | 440 |
| |
433 | 441 |
| |
434 | 442 |
| |
|
You can’t perform that action at this time.
0 commit comments