mirror of
https://github.com/ossrs/srs.git
synced 2025-02-14 20:31:56 +00:00
Improve test coverage for service TCP/UDP.
This commit is contained in:
parent
02c1bd0946
commit
42ee6570a7
1 changed files with 1 additions and 1 deletions
|
@ -919,7 +919,7 @@ VOID TEST(TCPServerTest, TCPClientServer)
|
||||||
HELPER_ASSERT_SUCCESS(c.write((void*)"Hello", 5, NULL));
|
HELPER_ASSERT_SUCCESS(c.write((void*)"Hello", 5, NULL));
|
||||||
|
|
||||||
char buf[6]; HELPER_ARRAY_INIT(buf, 6, 0);
|
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);
|
EXPECT_STREQ("Hello", buf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue