various improvements

This commit is contained in:
Jay
2026-04-24 10:59:33 -04:00
parent e32bbc99d8
commit 4ac2c488ad
14 changed files with 41 additions and 32 deletions
+2 -2
View File
@@ -140,7 +140,7 @@ func TestRunReader(t *testing.T) {
}
}, "expected onPeerClose")
assert.Equal(t, ExitError, gotKind)
assert.Equal(t, ExitUnexpectedClose, gotKind)
})
t.Run("read error calls onPeerClose with ExitUnexpectedDrop", func(t *testing.T) {
@@ -177,7 +177,7 @@ func TestRunReader(t *testing.T) {
}
}, "expected onPeerClose")
assert.Equal(t, ExitError, gotKind)
assert.Equal(t, ExitReadError, gotKind)
})
t.Run("ctx.Done exits without calling onPeerClose", func(t *testing.T) {