Skip to content

Split test_sockets.py into node and browser suites - #27555

Merged
sbc100 merged 3 commits into
emscripten-core:mainfrom
guybedford:sockets-split
Aug 17, 2026
Merged

Split test_sockets.py into node and browser suites#27555
sbc100 merged 3 commits into
emscripten-core:mainfrom
guybedford:sockets-split

Conversation

@guybedford

Copy link
Copy Markdown
Collaborator

This splits the sockets test suite into sockets_node and sockets_browser, as suggested by @sbc100 in #27207. A pure test refactor with no test content changes, so that the node socket tests no longer run under a browser-based suite.

  • test/sockets_common.py: shared server harnesses and helpers (websockify/compiled harnesses, echo server processes, IPv6 loopback probe, skip decorators)
  • test/test_sockets_node.py: sockets_node/sockets_node64 on RunnerCore (previously these ran under BrowserCore) - the nodejs echo, connect-failure, subprotocol, and NODERAWSOCKETS tests
  • test/test_sockets_browser.py: sockets_browser/sockets_browser64 on BrowserCore - all btest-based tests, unchanged
  • test/runner.py, CircleCI config, and the test-suite docs updated; the chrome CI job now runs both suites, preserving existing coverage

Verified that every test method in the old file appears exactly once across the new files.

Made with AI assistance under my review

Comment thread test/sockets_common.py Outdated
@sbc100
sbc100 enabled auto-merge (squash) August 17, 2026 19:02
@sbc100
sbc100 merged commit c333eb4 into emscripten-core:main Aug 17, 2026
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants