Skip to content

Commit

Permalink
fix utest error
Browse files Browse the repository at this point in the history
  • Loading branch information
duiniuluantanqin committed Dec 7, 2022
1 parent 94e3405 commit f8965e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trunk/src/utest/srs_utest_protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3561,15 +3561,15 @@ VOID TEST(ProtocolRTMPTest, RTMPRequest)
EXPECT_TRUE(NULL != req.args);
EXPECT_TRUE(req1.args != req.args);

srs_discovery_tc_url("rtmp://std.ossrs.net/live?a=1#b=2",
srs_discovery_tc_url("rtmp://std.ossrs.net/live/livestream?a=1#b=2",
req.schema, req.host, req.vhost, req.app, req.stream, req.port, param);
EXPECT_STREQ("?a=1#b=2", param.c_str());

srs_discovery_tc_url("rtmp://std.ossrs.net/live?a=1&c=3#b=2",
srs_discovery_tc_url("rtmp://std.ossrs.net/live/livestream?a=1&c=3#b=2",
req.schema, req.host, req.vhost, req.app, req.stream, req.port, param);
EXPECT_STREQ("?a=1&c=3#b=2", param.c_str());

srs_discovery_tc_url("rtmp://std.ossrs.net/live?a=1&c=3#b=2#d=4",
srs_discovery_tc_url("rtmp://std.ossrs.net/live/livestream?a=1&c=3#b=2#d=4",
req.schema, req.host, req.vhost, req.app, req.stream, req.port, param);
EXPECT_STREQ("?a=1&c=3#b=2#d=4", param.c_str());
}
Expand Down

0 comments on commit f8965e3

Please sign in to comment.