Skip to content

Commit

Permalink
Fix utest fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Apr 23, 2024
1 parent e0f8446 commit 2f035e1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions trunk/src/utest/srs_utest_rtmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1895,8 +1895,16 @@ VOID TEST(ProtocolRTMPTest, ServerFMLEStart)
HELPER_ASSERT_SUCCESS(p.expect_message(&msg, &pkt));
srs_freep(msg);
srs_freep(pkt);
}

HELPER_EXPECT_SUCCESS(r.start_publishing(1));

if (true) {
tio.in_buffer.append(&io.out_buffer);

// publish response onStatus(NetStream.Publish.Start)
SrsCommonMessage* msg = NULL;
SrsCallPacket* pkt = NULL;
HELPER_ASSERT_SUCCESS(p.expect_message(&msg, &pkt));
srs_freep(msg);
srs_freep(pkt);
Expand Down Expand Up @@ -1934,8 +1942,16 @@ VOID TEST(ProtocolRTMPTest, ServerHaivisionPublish)
HELPER_ASSERT_SUCCESS(p.expect_message(&msg, &pkt));
srs_freep(msg);
srs_freep(pkt);
}

HELPER_EXPECT_SUCCESS(r.start_publishing(1));

if (true) {
tio.in_buffer.append(&io.out_buffer);

// publish response onStatus(NetStream.Publish.Start)
SrsCommonMessage* msg = NULL;
SrsCallPacket* pkt = NULL;
HELPER_ASSERT_SUCCESS(p.expect_message(&msg, &pkt));
srs_freep(msg);
srs_freep(pkt);
Expand Down Expand Up @@ -2005,6 +2021,7 @@ VOID TEST(ProtocolRTMPTest, ServerFlashPublish)
SrsRtmpServer r(&io);

HELPER_EXPECT_SUCCESS(r.start_flash_publish(1));
HELPER_EXPECT_SUCCESS(r.start_publishing(1));

if (true) {
MockBufferIO tio;
Expand Down

0 comments on commit 2f035e1

Please sign in to comment.