Files
magpie/internal
yetone 76d6296edf gateway: the key-slot keepalive test skips SSE comments before the first chunk
TestKeyConcurrencyKeepsStreamAlive went red on macOS CI (Race run
42920368236 at 8fa91a852) with `first = ": keepalive\n"`. The test sets
keepHeldAfter to 10ms, so a first chunk slower than that under -race
comes after a keepalive comment, and the test read that comment as the
vendor's reply. The first read now skips comment and blank lines and
checks the first data line.

Broken by hand: a 60ms sleep before slowVendor's first chunk for
"first" turned the old test red 3 of 3 with CI's exact message; the
new test passed under it. The sleep is reverted.

Run on mote: gofmt -l (clean), go vet ./internal/gateway, and
go test -race ./internal/gateway -run "TestKeyConcurrency|TestKeySlot"
-count=10: ok.
Not run: the full suite (test-only change in one test).
2026-11-11 08:58:10 +08:00
..
…
…
…
…
2026-11-11 08:14:28 +08:00
…
…