mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix reload ingest bug, remove when disabled. 0.9.196
This commit is contained in:
parent
2f5fa25f29
commit
cf7504826b
10 changed files with 1116 additions and 76 deletions
|
@ -70,8 +70,6 @@ int MockSrsConfig::parse(string buf)
|
|||
|
||||
#ifdef ENABLE_UTEST_CONFIG
|
||||
|
||||
#define _MIN_OK_CONF "listen 1935; "
|
||||
|
||||
// full.conf
|
||||
std::string __full_conf = ""
|
||||
"# all config for srs \n"
|
||||
|
@ -5454,5 +5452,13 @@ VOID TEST(ConfigMainTest, CheckConf_pithy_print)
|
|||
}
|
||||
}
|
||||
|
||||
VOID TEST(ConfigMainTest, CheckConf_vhost_ingest_id)
|
||||
{
|
||||
MockSrsConfig conf;
|
||||
EXPECT_TRUE(ERROR_SUCCESS == conf.parse(_MIN_OK_CONF"vhost v{ingest id{}}"));
|
||||
EXPECT_TRUE(ERROR_SUCCESS != conf.parse(_MIN_OK_CONF"vhost v{ingest id{} ingest id{}}"));
|
||||
EXPECT_TRUE(ERROR_SUCCESS != conf.parse(_MIN_OK_CONF"vhost v{ingest{} ingest{}}"));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue