Update error handling.

This commit is contained in:
Jay
2026-04-19 15:21:10 -04:00
parent dfd28d65bc
commit 3066802f62
9 changed files with 119 additions and 43 deletions
+1 -1
View File
@@ -213,7 +213,7 @@ func TestConnectionSend(t *testing.T) {
defer conn.Close()
err = conn.Send([]byte("test"))
assert.ErrorContains(t, err, "failed to set write deadline: test error")
assert.ErrorIs(t, err, ErrFailedWriteDeadline)
honeybeetest.Eventually(t, func() bool {
return conn.State() == StateClosed