Skip to content

Skip keepalive pings in the web stream test viewer - #531

Merged
quanticstudios merged 1 commit into
mainfrom
web-test-skip-ping
Nov 22, 2026
Merged

quanticstudios merged 1 commit into
mainfrom
web-test-skip-ping

Conversation

@quanticstudios

Copy link
Copy Markdown
Owner

TestManyImages failed on #529 with stream_test.go:551: unexpected end of JSON input. The test ran 33 s under -race, past the server's 30 s pingInterval, so an empty ping frame reached viewer.next, which parsed it as JSON.

  • viewer.next now skips control frames (opcode 0x8 and up).

Verified: go test ./internal/web passes.

🤖 Generated with Claude Code

TestManyImages takes over 30 s under -race in CI, past pingInterval, so
the server's empty ping frame reached viewer.next, which parsed it as
JSON and failed with "unexpected end of JSON input".
@quanticstudios
quanticstudios merged commit 5fbe071 into main Nov 22, 2026
29 checks passed
@quanticstudios
quanticstudios deleted the web-test-skip-ping branch November 22, 2026 21:47
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.

1 participant