Skip to content

tests: pass AbortController into the camera-speed viewer test sandbox - #7409

Closed
justrealyme wants to merge 1 commit into
ItsNotRexed:mainfrom
justrealyme:fix-viewer-test-abortcontroller
Closed

justrealyme wants to merge 1 commit into
ItsNotRexed:mainfrom
justrealyme:fix-viewer-test-abortcontroller

Conversation

@justrealyme

Copy link
Copy Markdown

Claimed in the coordination issue as:

What and why

tests/test_viewer_streaming.cjs fails on main: the "Shift speeds the camera up and Ctrl slows it down"
test runs the viewer module in a vm sandbox without AbortController, so loadWorld() throws
ReferenceError: AbortController is not defined. This passes AbortController, setTimeout and
clearTimeout into that sandbox, as the bounds-toggle test next to it already does. Test-only change.

Tested

node --test tests/test_viewer_streaming.cjs on Node 22: 56 pass / 1 fail before, 57 pass / 0 fail after.
No GPU involved (viewer test only).

AI-assisted: yes

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a)

The 'Shift speeds the camera up and Ctrl slows it down' test runs the viewer
module in a vm context without AbortController, so loadWorld() throws
'AbortController is not defined'. Pass AbortController, setTimeout and
clearTimeout in, as the bounds-toggle test next to it already does.

node --test tests/test_viewer_streaming.cjs: 56 pass / 1 fail -> 57 pass / 0 fail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AYEAdJzj49xbRpBQmAcU13
@justrealyme

Copy link
Copy Markdown
Author

Closing as a duplicate of #5692 / #7063 / #7085, which fix the same test. Sorry for the noise.

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