test: fourth review -- a hang-up anywhere in the body, an abandoned request is not an implicit 200, a database error is logged as its SQLSTATE (red)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -78,7 +78,7 @@ func (b *brokenBody) Read(p []byte) (int, error) {
|
|||||||
return 0, io.ErrUnexpectedEOF
|
return 0, io.ErrUnexpectedEOF
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestAccept_AnErrorReadingTheClientsBodyIsMarkedAsTheClientsAndNothingElseIs(t *testing.T) {
|
func TestAccept_AnErrorReadingTheClientsBodyIsMarkedAsTheClientsAndAWrappedSubmitErrorIsNot(t *testing.T) {
|
||||||
r := newRig(t)
|
r := newRig(t)
|
||||||
|
|
||||||
_, err := r.in.Accept(context.Background(), "user-1", "t", &brokenBody{n: 1})
|
_, err := r.in.Accept(context.Background(), "user-1", "t", &brokenBody{n: 1})
|
||||||
|
|||||||
Reference in New Issue
Block a user