test: throttle history verification

This commit is contained in:
richjohnrambo
2026-09-28 08:17:14 +08:00
parent cb2210aa3e
commit d3c679878d
9 changed files with 141 additions and 10 deletions
+4 -1
View File
@@ -344,7 +344,10 @@ func (c *WSClient) removeWait(id string) {
}
func (c *WSClient) readLoop() {
defer close(c.done)
defer func() {
_ = c.conn.Close()
close(c.done)
}()
for {
var envelope map[string]json.RawMessage
if err := c.conn.ReadJSON(&envelope); err != nil {