Skip to content

Commit 82d57e1

Browse files
ossrs-aiwinlinvip
authored andcommitted
AI: Refine bug caused flaky test failure.
1 parent 7439a91 commit 82d57e1

File tree

1 file changed

+2
-1
lines changed
  • trunk/3rdparty/srs-bench/srs

1 file changed

+2
-1
lines changed

trunk/3rdparty/srs-bench/srs/api.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ func (v *statAPI) Streams() *statAPI {
133133
}{}
134134

135135
ctx := v.ctx
136-
if err := apiRequest(ctx, "http://localhost:1985/api/v1/streams/", nil, &res); err != nil {
136+
// Add count parameter to get all streams (default is 1 which only returns first stream)
137+
if err := apiRequest(ctx, "http://localhost:1985/api/v1/streams/?count=100", nil, &res); err != nil {
137138
logger.Tf(ctx, "query streams err %+v", err)
138139
return v
139140
}

0 commit comments

Comments
 (0)