mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix utest fail
This commit is contained in:
parent
b4282a6ee1
commit
3d34eb33e5
1 changed files with 6 additions and 3 deletions
|
@ -149,7 +149,8 @@ VOID TEST(AppCoroutineTest, Dummy)
|
||||||
SrsDummyCoroutine dc;
|
SrsDummyCoroutine dc;
|
||||||
|
|
||||||
if (true) {
|
if (true) {
|
||||||
EXPECT_TRUE(dc.cid().empty());
|
SrsContextId v = dc.cid();
|
||||||
|
EXPECT_FALSE(v.empty());
|
||||||
|
|
||||||
srs_error_t err = dc.pull();
|
srs_error_t err = dc.pull();
|
||||||
EXPECT_TRUE(err != srs_success);
|
EXPECT_TRUE(err != srs_success);
|
||||||
|
@ -165,7 +166,8 @@ VOID TEST(AppCoroutineTest, Dummy)
|
||||||
if (true) {
|
if (true) {
|
||||||
dc.stop();
|
dc.stop();
|
||||||
|
|
||||||
EXPECT_TRUE(dc.cid().empty());
|
SrsContextId v = dc.cid();
|
||||||
|
EXPECT_FALSE(v.empty());
|
||||||
|
|
||||||
srs_error_t err = dc.pull();
|
srs_error_t err = dc.pull();
|
||||||
EXPECT_TRUE(err != srs_success);
|
EXPECT_TRUE(err != srs_success);
|
||||||
|
@ -181,7 +183,8 @@ VOID TEST(AppCoroutineTest, Dummy)
|
||||||
if (true) {
|
if (true) {
|
||||||
dc.interrupt();
|
dc.interrupt();
|
||||||
|
|
||||||
EXPECT_TRUE(dc.cid().empty());
|
SrsContextId v = dc.cid();
|
||||||
|
EXPECT_FALSE(v.empty());
|
||||||
|
|
||||||
srs_error_t err = dc.pull();
|
srs_error_t err = dc.pull();
|
||||||
EXPECT_TRUE(err != srs_success);
|
EXPECT_TRUE(err != srs_success);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue