Completed worker session tests.

This commit is contained in:
Jay
2026-04-19 10:40:23 -04:00
parent 45b1a31cbb
commit 0715bde29d
3 changed files with 309 additions and 4 deletions
+4 -1
View File
@@ -505,7 +505,10 @@ func setupTestConnection(t *testing.T, config *ConnectionConfig) (
// Wire ReadMessage to pull from incomingData channel
mockSocket.ReadMessageFunc = func() (int, []byte, error) {
select {
case data := <-incomingData:
case data, ok := <-incomingData:
if !ok {
return 0, nil, io.EOF
}
return data.MsgType, data.Data, data.Err
case <-mockSocket.Closed:
return 0, nil, io.EOF