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

fix UT StUtimeInMicroseconds

This commit is contained in:
Jacob Su 2024-10-30 19:12:23 +08:00
parent 101382afd0
commit e3d51b8764

View file

@ -22,9 +22,9 @@ VOID TEST(StTest, StUtimeInMicroseconds)
EXPECT_GT(st_time_1, 0);
EXPECT_GT(st_time_2, 0);
EXPECT_GE(st_time_2, st_time_1);
// st_time_2 - st_time_1 should be in range of [1, 100] microseconds
// st_time_2 - st_time_1 should be in range of [1, 150] microseconds
EXPECT_GE(st_time_2 - st_time_1, 0);
EXPECT_LE(st_time_2 - st_time_1, 100);
EXPECT_LE(st_time_2 - st_time_1, 150);
}
static inline st_utime_t time_gettimeofday() {