Fix utest fail
This commit is contained in:
parent
b4282a6ee1
commit
3d34eb33e5
|
|
@ -149,7 +149,8 @@ VOID TEST(AppCoroutineTest, Dummy)
|
|||
SrsDummyCoroutine dc;
|
||||
|
||||
if (true) {
|
||||
EXPECT_TRUE(dc.cid().empty());
|
||||
SrsContextId v = dc.cid();
|
||||
EXPECT_FALSE(v.empty());
|
||||
|
||||
srs_error_t err = dc.pull();
|
||||
EXPECT_TRUE(err != srs_success);
|
||||
|
|
@ -165,7 +166,8 @@ VOID TEST(AppCoroutineTest, Dummy)
|
|||
if (true) {
|
||||
dc.stop();
|
||||
|
||||
EXPECT_TRUE(dc.cid().empty());
|
||||
SrsContextId v = dc.cid();
|
||||
EXPECT_FALSE(v.empty());
|
||||
|
||||
srs_error_t err = dc.pull();
|
||||
EXPECT_TRUE(err != srs_success);
|
||||
|
|
@ -181,7 +183,8 @@ VOID TEST(AppCoroutineTest, Dummy)
|
|||
if (true) {
|
||||
dc.interrupt();
|
||||
|
||||
EXPECT_TRUE(dc.cid().empty());
|
||||
SrsContextId v = dc.cid();
|
||||
EXPECT_FALSE(v.empty());
|
||||
|
||||
srs_error_t err = dc.pull();
|
||||
EXPECT_TRUE(err != srs_success);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user