AI: Refine bug caused flaky test failure.
This commit is contained in:
parent
7439a91daf
commit
82d57e17ab
3
trunk/3rdparty/srs-bench/srs/api.go
vendored
3
trunk/3rdparty/srs-bench/srs/api.go
vendored
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user