Skip to content

Commit

Permalink
Fix utest fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Jun 20, 2024
1 parent a49f089 commit 28422bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trunk/src/utest/srs_utest_http.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,7 @@ VOID TEST(ProtocolHTTPTest, HTTPServerMuxerImplicitHandler)
HELPER_ASSERT_SUCCESS(s.handle("/api/", h0));

MockHttpHandler* h1 = new MockHttpHandler("Done");
SrsAutoFree(MockHttpHandler, h1);
HELPER_EXPECT_FAILED(s.handle("/api/", h1));
}

Expand Down Expand Up @@ -892,6 +893,7 @@ VOID TEST(ProtocolHTTPTest, HTTPServerMuxerBasic)
HELPER_ASSERT_SUCCESS(s.initialize());

MockHttpHandler* h0 = new MockHttpHandler("Hello, world!");
SrsAutoFree(MockHttpHandler, h0);
HELPER_EXPECT_FAILED(s.handle("", h0));
}

Expand Down

0 comments on commit 28422bf

Please sign in to comment.