mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Improve test coverage for config.
This commit is contained in:
parent
f7673f6009
commit
0fd0114ee6
2 changed files with 453 additions and 3 deletions
|
@ -3892,7 +3892,7 @@ srs_error_t SrsConfig::parse_buffer(SrsConfigBuffer* buffer)
|
|||
{
|
||||
srs_error_t err = srs_success;
|
||||
|
||||
// We use a new root to parse buffer, to allow parse multiple times.
|
||||
// We use a new root to parse buffer, to allow parse multiple times.
|
||||
srs_freep(root);
|
||||
root = new SrsConfDirective();
|
||||
|
||||
|
@ -4539,7 +4539,7 @@ bool SrsConfig::get_mr_enabled(string vhost)
|
|||
|
||||
srs_utime_t SrsConfig::get_mr_sleep(string vhost)
|
||||
{
|
||||
static srs_utime_t DEFAULT = SRS_PERF_MR_SLEEP;
|
||||
static srs_utime_t DEFAULT = SRS_PERF_MR_SLEEP;
|
||||
|
||||
SrsConfDirective* conf = get_vhost(vhost);
|
||||
if (!conf) {
|
||||
|
@ -4561,7 +4561,7 @@ srs_utime_t SrsConfig::get_mr_sleep(string vhost)
|
|||
|
||||
srs_utime_t SrsConfig::get_mw_sleep(string vhost)
|
||||
{
|
||||
static srs_utime_t DEFAULT = SRS_PERF_MW_SLEEP;
|
||||
static srs_utime_t DEFAULT = SRS_PERF_MW_SLEEP;
|
||||
|
||||
SrsConfDirective* conf = get_vhost(vhost);
|
||||
if (!conf) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue