1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-12 11:21:52 +00:00

Improve test coverage for service TCP/UDP.

This commit is contained in:
winlin 2020-01-05 18:43:23 +08:00
parent 02c1bd0946
commit 42ee6570a7

View file

@ -919,7 +919,7 @@ VOID TEST(TCPServerTest, TCPClientServer)
HELPER_ASSERT_SUCCESS(c.write((void*)"Hello", 5, NULL));
char buf[6]; HELPER_ARRAY_INIT(buf, 6, 0);
HELPER_ASSERT_SUCCESS(srs_read(c.stfd, buf, 5, NULL));
HELPER_ASSERT_SUCCESS(srs_read(c.stfd, buf, 5, 1*SRS_UTIME_SECONDS));
EXPECT_STREQ("Hello", buf);
}
}