CARVIEW |
Select Language
HTTP/2 200
date: Thu, 09 Oct 2025 08:35:57 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/"16dce845a0867370b67a36fbbf07f2db"
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=9HgmCNaHeujTD1XjQgvX%2F6UsN9X2l8OUxeAEnmETzPjaygZhCISHprQAWc5L9j4qWG3v9BpBXpDQzzIi4zbMp0eqJZGoGsGBfoAYgABeYs85dJFgARrW39FxYrnOZRtK7JLtRDuqn4KQ1Kb8wsL9nsKbYIRWUiRy2bFc1Hj3FL5G%2F9hSIy6JjfJxbmFFCauw3amuL6Asn1rTcLR77vvrEzDR81jY464JH7pFgWGIZ6IUM%2BCl%2FTV3Z%2BVa5zx1gWImzjG5XqIZ%2BlT3e8pqVAHYhA%3D%3D--xL9P14QDAwo6%2Fgfr--m1x6eyNBPJ7%2BLwOp7uhAYA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.865281234.1759998956; Path=/; Domain=github.com; Expires=Fri, 09 Oct 2026 08:35:56 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 09 Oct 2026 08:35:56 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A536:10B175:DF181:FABA9:68E773EC
fix: restarted browsers not running tests (#3233) · karma-runner/karma@cc2eff2 · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit cc2eff2
fix: restarted browsers not running tests (#3233)
* fix: restarted browsers not running tests
Currently whenever a browser disconnects completely (no socket.io connection loss), the launcher is instructed to "restart" the browser. Whenever the restarted browser now tries to "register" again, Karma considers the browser instance to be still executing and doesn't do anything about it (except setting the state to `EXECUTING` again).
This means that the browser is in the state of executing, but
practically it does nothing just waits. Resulting another disconnect
(repeat here).
* test: add unit test that covers disconnected restarted browsers
* fixup! test: add unit test that covers disconnected restarted browsers
Address feedback
* fixup! test: add unit test that covers disconnected restarted browsers
Improve comments & log messages1 parent 584dddc commit cc2eff2Copy full SHA for cc2eff2
File tree
Expand file treeCollapse file tree
7 files changed
+137
-29
lines changedFilter options
- client
- lib
- test
- client
- unit
Expand file treeCollapse file tree
7 files changed
+137
-29
lines changedCollapse file: client/karma.js
+14-2Lines changed: 14 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
17 | 22 |
| |
18 | 23 |
| |
19 | 24 |
| |
| |||
227 | 232 |
| |
228 | 233 |
| |
229 | 234 |
| |
230 |
| - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
231 | 238 |
| |
232 | 239 |
| |
233 | 240 |
| |
234 | 241 |
| |
235 | 242 |
| |
236 | 243 |
| |
237 |
| - | |
| 244 | + | |
| 245 | + | |
238 | 246 |
| |
239 | 247 |
| |
240 | 248 |
| |
241 | 249 |
| |
242 | 250 |
| |
243 | 251 |
| |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
244 | 256 |
| |
245 | 257 |
| |
246 | 258 |
|
Collapse file: lib/browser.js
+12-6Lines changed: 12 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
11 |
| - | |
| 10 | + | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
121 | 121 |
| |
122 | 122 |
| |
123 | 123 |
| |
124 |
| - | |
| 124 | + | |
| 125 | + | |
125 | 126 |
| |
126 | 127 |
| |
127 |
| - | |
| 128 | + | |
| 129 | + | |
128 | 130 |
| |
129 |
| - | |
| 131 | + | |
130 | 132 |
| |
131 | 133 |
| |
132 |
| - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
133 | 139 |
| |
134 | 140 |
| |
135 | 141 |
| |
|
Collapse file: lib/server.js
+12-2Lines changed: 12 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
232 | 232 |
| |
233 | 233 |
| |
234 | 234 |
| |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
235 | 244 |
| |
236 | 245 |
| |
237 |
| - | |
238 |
| - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
239 | 249 |
| |
240 | 250 |
| |
241 | 251 |
| |
|
Collapse file: test/client/karma.spec.js
+9Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
147 | 147 |
| |
148 | 148 |
| |
149 | 149 |
| |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
150 | 159 |
| |
151 | 160 |
| |
152 | 161 |
| |
|
Collapse file: test/unit/browser.spec.js
+13Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
297 | 297 |
| |
298 | 298 |
| |
299 | 299 |
| |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
300 | 313 |
| |
301 | 314 |
| |
302 | 315 |
| |
|
Collapse file: test/unit/server.spec.js
+51-1Lines changed: 51 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| 5 | + | |
5 | 6 |
| |
6 | 7 |
| |
7 | 8 |
| |
| |||
10 | 11 |
| |
11 | 12 |
| |
12 | 13 |
| |
| 14 | + | |
13 | 15 |
| |
14 | 16 |
| |
15 | 17 |
| |
16 | 18 |
| |
17 | 19 |
| |
18 | 20 |
| |
19 | 21 |
| |
| 22 | + | |
20 | 23 |
| |
21 | 24 |
| |
22 | 25 |
| |
| |||
67 | 70 |
| |
68 | 71 |
| |
69 | 72 |
| |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
70 | 80 |
| |
71 | 81 |
| |
72 | 82 |
| |
73 | 83 |
| |
74 | 84 |
| |
75 | 85 |
| |
76 | 86 |
| |
77 |
| - | |
| 87 | + | |
78 | 88 |
| |
79 | 89 |
| |
80 | 90 |
| |
| |||
277 | 287 |
| |
278 | 288 |
| |
279 | 289 |
| |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
280 | 330 |
|
Collapse file: yarn.lock
+26-18Lines changed: 26 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2795 | 2795 |
| |
2796 | 2796 |
| |
2797 | 2797 |
| |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
2798 | 2803 |
| |
2799 | 2804 |
| |
2800 | 2805 |
| |
| |||
4216 | 4221 |
| |
4217 | 4222 |
| |
4218 | 4223 |
| |
4219 |
| - | |
4220 |
| - | |
4221 |
| - | |
4222 |
| - | |
4223 |
| - | |
4224 | 4224 |
| |
4225 | 4225 |
| |
4226 | 4226 |
| |
| |||
4583 | 4583 |
| |
4584 | 4584 |
| |
4585 | 4585 |
| |
| 4586 | + | |
| 4587 | + | |
| 4588 | + | |
| 4589 | + | |
| 4590 | + | |
4586 | 4591 |
| |
4587 | 4592 |
| |
4588 | 4593 |
| |
| |||
4641 | 4646 |
| |
4642 | 4647 |
| |
4643 | 4648 |
| |
4644 |
| - | |
4645 |
| - | |
4646 |
| - | |
4647 |
| - | |
| 4649 | + | |
| 4650 | + | |
| 4651 | + | |
| 4652 | + | |
| 4653 | + | |
| 4654 | + | |
| 4655 | + | |
4648 | 4656 |
| |
4649 | 4657 |
| |
4650 | 4658 |
| |
| |||
6277 | 6285 |
| |
6278 | 6286 |
| |
6279 | 6287 |
| |
6280 |
| - | |
6281 |
| - | |
6282 |
| - | |
6283 |
| - | |
| 6288 | + | |
| 6289 | + | |
| 6290 | + | |
| 6291 | + | |
6284 | 6292 |
| |
6285 | 6293 |
| |
6286 | 6294 |
| |
| |||
7149 | 7157 |
| |
7150 | 7158 |
| |
7151 | 7159 |
| |
7152 |
| - | |
7153 |
| - | |
7154 |
| - | |
7155 |
| - | |
| 7160 | + | |
| 7161 | + | |
| 7162 | + | |
| 7163 | + | |
7156 | 7164 |
| |
7157 |
| - | |
| 7165 | + | |
7158 | 7166 |
| |
7159 | 7167 |
| |
7160 | 7168 |
| |
|
You can’t perform that action at this time.
0 commit comments