AI: Refine bug caused flaky test failure.

This commit is contained in:
OSSRS-AI 2025-11-03 15:31:29 -05:00 committed by winlin
parent 7439a91daf
commit 82d57e17ab

View File

@ -133,7 +133,8 @@ func (v *statAPI) Streams() *statAPI {
}{} }{}
ctx := v.ctx 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) logger.Tf(ctx, "query streams err %+v", err)
return v return v
} }