mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine get_vhost_http_remux_fast_cache in time unit
This commit is contained in:
parent
010e35bec2
commit
138d1e3cad
4 changed files with 13 additions and 5 deletions
|
@ -1898,6 +1898,14 @@ VOID TEST(ConfigUnitTest, CheckDefaultValuesVhost)
|
|||
EXPECT_EQ(100 * SRS_UTIME_SECONDS, conf.get_queue_length("v"));
|
||||
EXPECT_EQ(10 * SRS_UTIME_MILLISECONDS, conf.get_send_min_interval("v"));
|
||||
}
|
||||
|
||||
if (true) {
|
||||
EXPECT_TRUE(ERROR_SUCCESS == conf.parse(_MIN_OK_CONF));
|
||||
EXPECT_EQ(0, conf.get_vhost_http_remux_fast_cache(""));
|
||||
|
||||
EXPECT_TRUE(ERROR_SUCCESS == conf.parse(_MIN_OK_CONF"vhost v{http_remux{fast_cache 10;}}"));
|
||||
EXPECT_EQ(10 * SRS_UTIME_SECONDS, conf.get_vhost_http_remux_fast_cache("v"));
|
||||
}
|
||||
}
|
||||
|
||||
VOID TEST(ConfigUnitTest, CheckDefaultValuesGlobal)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue