Enum and field renames.

This commit is contained in:
Jay
2026-04-20 17:43:40 -04:00
parent fd806c0231
commit aaf8571b9f
9 changed files with 47 additions and 47 deletions
+3 -3
View File
@@ -102,7 +102,7 @@ func TestRunReader(t *testing.T) {
}
}, "expected onPeerClose")
assert.Equal(t, ExitCleanDisconnect, gotKind)
assert.Equal(t, ExitDisconnected, gotKind)
})
t.Run("unexpected close calls onPeerClose with ExitUnexpectedDrop", func(t *testing.T) {
@@ -139,7 +139,7 @@ func TestRunReader(t *testing.T) {
}
}, "expected onPeerClose")
assert.Equal(t, ExitUnexpectedDrop, gotKind)
assert.Equal(t, ExitError, gotKind)
})
t.Run("read error calls onPeerClose with ExitUnexpectedDrop", func(t *testing.T) {
@@ -176,7 +176,7 @@ func TestRunReader(t *testing.T) {
}
}, "expected onPeerClose")
assert.Equal(t, ExitUnexpectedDrop, gotKind)
assert.Equal(t, ExitError, gotKind)
})
t.Run("ctx.Done exits without calling onPeerClose", func(t *testing.T) {