Skip to content

Commit

Permalink
fix unittest test_tc_clientsocket testParseEndpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanshudong committed Oct 11, 2023
1 parent 51072e4 commit 93339e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unit-test/util/test_tc_clientsocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class UtilClientSocketTest : public testing::Test
TEST_F(UtilClientSocketTest, testParseEndpoint)
{
TC_Endpoint ep;
ep.parse("tcp -h 127.0.0.1 -p 17890 -t 3000:");
ep.parse("tcp -h 127.0.0.1 -p 17890 -p 3000");

ASSERT_TRUE(ep.isTcp());
ASSERT_TRUE(ep.getHost() == "127.0.0.1");
Expand Down

0 comments on commit 93339e9

Please sign in to comment.