From 68daa2f486bf173872f6a4e2dd393e6e1ad2eafa Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Mon, 7 Apr 2025 15:35:36 -0700 Subject: [PATCH 1/2] Increase test time for event upload --- tests/functests/APITest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functests/APITest.cpp b/tests/functests/APITest.cpp index 03ada480f..91bc2115f 100644 --- a/tests/functests/APITest.cpp +++ b/tests/functests/APITest.cpp @@ -417,7 +417,7 @@ TEST(APITest, LogManager_Initialize_DebugEventListener) EXPECT_EQ(0u, debugListener.numReject); LogManager::UploadNow(); // Try to upload whatever we got - PAL::sleep(1000); // Give enough time to upload at least one event + PAL::sleep(5000); // Give enough time to upload at least one event EXPECT_NE(0u, debugListener.numSent); // Some posts must succeed within 500ms LogManager::PauseTransmission(); // There could still be some pending at this point LogManager::Flush(); // Save all pending to disk From c2d43bfe6eaf3966c3f65cc45a75aad27595ee7c Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Mon, 7 Apr 2025 17:35:08 -0700 Subject: [PATCH 2/2] Increase timeout more --- tests/functests/APITest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functests/APITest.cpp b/tests/functests/APITest.cpp index 91bc2115f..11524cd5a 100644 --- a/tests/functests/APITest.cpp +++ b/tests/functests/APITest.cpp @@ -417,7 +417,7 @@ TEST(APITest, LogManager_Initialize_DebugEventListener) EXPECT_EQ(0u, debugListener.numReject); LogManager::UploadNow(); // Try to upload whatever we got - PAL::sleep(5000); // Give enough time to upload at least one event + PAL::sleep(10000); // Give enough time to upload at least one event EXPECT_NE(0u, debugListener.numSent); // Some posts must succeed within 500ms LogManager::PauseTransmission(); // There could still be some pending at this point LogManager::Flush(); // Save all pending to disk