From e3d51b8764d1608d838655f8d17d8b220255c7ec Mon Sep 17 00:00:00 2001 From: Jacob Su Date: Wed, 30 Oct 2024 19:12:23 +0800 Subject: [PATCH] fix UT StUtimeInMicroseconds --- trunk/src/utest/srs_utest_st.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/src/utest/srs_utest_st.cpp b/trunk/src/utest/srs_utest_st.cpp index 553bc0c95..7992a5b57 100644 --- a/trunk/src/utest/srs_utest_st.cpp +++ b/trunk/src/utest/srs_utest_st.cpp @@ -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() {