Skip to content

Commit 738eb3a

Browse files
committed
It looks like github unit tests don't have oslog debug enabled
1 parent 9a2be22 commit 738eb3a

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

Tests/Unit-Tests/NewRelicAgentTests/Uncategorized/NRLoggerTests.m

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -274,14 +274,13 @@ - (void) testAutoCollectedLogs {
274274
}];
275275

276276
// Three messages should reach the remote log file for upload.
277-
NSLog(@"NSLog Test \n\n");
277+
NSLog(@"NSLog Test \n");
278278
os_log_t customLog = os_log_create("com.agent.tests", "logTest");
279279
// Log messages at different levels
280-
os_log(customLog, "This is a default os_log message.\n");
281-
os_log_info(customLog, "This is an info os_log message.\n");
282-
os_log_debug(customLog, "This is a debug os_log message.\n");
283-
os_log_error(customLog, "This is an error os_log message.\n");
284-
os_log_fault(customLog, "This is a fault os_log message.\n");
280+
os_log(customLog, "This is a default os_log message.");
281+
os_log_info(customLog, "This is an info os_log message.");
282+
os_log_error(customLog, "This is an error os_log message.");
283+
os_log_fault(customLog, "This is a fault os_log message.");
285284

286285
XCTestExpectation *delayExpectation2 = [self expectationWithDescription:@"Waiting for Log Queue"];
287286

@@ -312,7 +311,6 @@ - (void) testAutoCollectedLogs {
312311
@{@"message": @"NSLog Test"},
313312
@{@"message": @"This is a default os_log message."},
314313
@{@"message": @"This is an info os_log message."},
315-
@{@"message": @"This is a debug os_log message."},
316314
@{@"message": @"This is an error os_log message."},
317315
@{@"message": @"This is a fault os_log message."},
318316
];
@@ -336,7 +334,7 @@ - (void) testAutoCollectedLogs {
336334
}
337335
}
338336

339-
XCTAssertEqual(foundCount, 6, @"Three remote messages should be found.");
337+
XCTAssertEqual(foundCount, 5, @"Three remote messages should be found.");
340338
[NRMAFlags disableFeatures: NRFeatureFlag_RedirectStdOutStdErr];
341339
}
342340

0 commit comments

Comments
 (0)