1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

SRT: fix utest failed

This commit is contained in:
hondaxiao 2022-04-22 19:46:52 +08:00 committed by winlin
parent e13d16439e
commit b566182f0b
2 changed files with 11 additions and 2 deletions

View file

@ -2115,6 +2115,9 @@ VOID TEST(ConfigUnitTest, CheckDefaultValuesVhost)
VOID TEST(ConfigUnitTest, CheckDefaultValuesGlobal)
{
if (true) {
// Schedule thread once, to update last_clock in state-thread.
srs_usleep(1);
srs_utime_t t0 = srs_update_system_time();
srs_usleep(10 * SRS_UTIME_MILLISECONDS);
srs_utime_t t1 = srs_update_system_time();