test(mcp): say what the running-call test proves; name the phase watcher's type
The running-call test passes even with a cut that marks every request inside (mutation check): the call runs in the session's task, past the handler's own check for a cut, so what it proves is that the close waits for the call and does not kill it. The line of the cut (a body read to its end is never cut) is proved at its seat by local::tests::a_body_read_to_its_end_is_never_cut_and_one_not_yet_is, which fails when a later poll can cut a whole body. Also a type alias for clippy's type_complexity. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f6daba558b
commit
7e5b698c1c
2 files changed
+11
-3
No files matched your search
@@ -1459,7 +1459,12 @@ fn a_slow_upload_that_finishes_within_the_grace_is_not_cut() {
|
||||
|
||||
/// A call whose body is whole and that is running when the grace runs out
|
||||
/// is not cut: it ends, is answered and recorded as having run, and only
|
||||
/// then is the close answered.
|
||||
/// then is the close answered. What this proves is that the close waits for
|
||||
/// the call and does not kill it; that a body read to its end is never cut
|
||||
/// (the line of INVARIANT 15) is proved at its seat, by
|
||||
/// `local::tests::a_body_read_to_its_end_is_never_cut_and_one_not_yet_is`:
|
||||
/// this test passes even with a cut that marks every request inside (the
|
||||
/// call runs in the session's task, past the handler's own check for a cut).
|
||||
#[cfg(unix)]
|
||||
#[test]
|
||||
fn a_running_call_is_never_cut_when_the_grace_runs_out() {
|
||||
|
||||
Reference in new issue
Block a user