From 82d57e17abaff93ebfb7507f8d2dc68db265f50b Mon Sep 17 00:00:00 2001 From: OSSRS-AI Date: Mon, 3 Nov 2025 15:31:29 -0500 Subject: [PATCH] AI: Refine bug caused flaky test failure. --- trunk/3rdparty/srs-bench/srs/api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trunk/3rdparty/srs-bench/srs/api.go b/trunk/3rdparty/srs-bench/srs/api.go index 25639ea37..487cc6f05 100644 --- a/trunk/3rdparty/srs-bench/srs/api.go +++ b/trunk/3rdparty/srs-bench/srs/api.go @@ -133,7 +133,8 @@ func (v *statAPI) Streams() *statAPI { }{} ctx := v.ctx - if err := apiRequest(ctx, "http://localhost:1985/api/v1/streams/", nil, &res); err != nil { + // Add count parameter to get all streams (default is 1 which only returns first stream) + if err := apiRequest(ctx, "http://localhost:1985/api/v1/streams/?count=100", nil, &res); err != nil { logger.Tf(ctx, "query streams err %+v", err) return v }