From e1a93e34964a246d62850e41b69d15ec667b9ef7 Mon Sep 17 00:00:00 2001 From: muxi Date: Thu, 19 Dec 2024 20:12:24 +0800 Subject: [PATCH] fix: the inconsistency between ut, name and doc Signed-off-by: muxi --- ylong_http_client/src/util/h2/streams.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ylong_http_client/src/util/h2/streams.rs b/ylong_http_client/src/util/h2/streams.rs index 40022e2..b1a395e 100644 --- a/ylong_http_client/src/util/h2/streams.rs +++ b/ylong_http_client/src/util/h2/streams.rs @@ -880,15 +880,14 @@ mod ut_streams { assert_eq!(stream.recv_window.notification_available(), 100); } - /// UT test case for `Streams::get_go_away_streams`. + /// UT test case for `Streams::get_unset_streams`. /// /// # Brief /// 1. Insert streams with different states and sends go_away with a stream /// id. - /// 2. Asserts that only streams with IDs greater than or equal to the - /// go_away ID are closed. + /// 2. Asserts that only streams with IDs greater than to the go_away ID are closed. #[test] - fn ut_streams_get_go_away_streams() { + fn ut_streams_get_unset_streams() { let mut streams = Streams::new(100, 100, FlowControl::new(100, 100)); streams.apply_max_concurrent_streams(4); streams -- Gitee