From 426de892b57d3e80afca471ee6d4bc02499bcf5d Mon Sep 17 00:00:00 2001 From: Mike Bruin Date: Thu, 24 Oct 2024 16:55:57 -0400 Subject: [PATCH] Adjusting the sleep value --- .../NewRelicAgentTests/Uncategorized/NRLoggerTests.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Unit-Tests/NewRelicAgentTests/Uncategorized/NRLoggerTests.m b/Tests/Unit-Tests/NewRelicAgentTests/Uncategorized/NRLoggerTests.m index 6d13effc..c3d83056 100644 --- a/Tests/Unit-Tests/NewRelicAgentTests/Uncategorized/NRLoggerTests.m +++ b/Tests/Unit-Tests/NewRelicAgentTests/Uncategorized/NRLoggerTests.m @@ -262,7 +262,7 @@ - (void) testAutoCollectedLogs { [NRLogger setRemoteLogLevel:NRLogLevelDebug]; XCTAssertTrue([NRAutoLogCollector redirectStandardOutputAndError]); - sleep(1); + sleep(5); // Three messages should reach the remote log file for upload. NSLog(@"NSLog Test \n\n"); @@ -273,7 +273,7 @@ - (void) testAutoCollectedLogs { os_log_error(customLog, "This is an error os_log message.\n"); os_log_fault(customLog, "This is a fault os_log message.\n"); - sleep(1); + sleep(5); [NRAutoLogCollector restoreStandardOutputAndError]; NSError* error;