You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: refactor test suite to (hopefully) fix flakiness (#65)
A major test suite refactor that attempts to address two possible
sources of flakiness:
- use of a throwaway bufio.Reader when completing client handshake,
which could potentially consume websocket frame bytes if written
by the server too quickly. fix here is to wrap the conn such that
buffered bytes are still available after the handshake is completed.
See newConnWithBufferedReader.
- rewriting all client/server tests to set up dedicated, separate client
and server conns instead of setting up a single conn and "simulating"
client/server reads/writes to that shared conn.
Unfortunately, this has not addressed all flakiness, but based on CI
runs it does seem to have improved things?
0 commit comments