Skip to content

Commit

Permalink
Restoring the logging sooner in the test to hopefully see failed test…
Browse files Browse the repository at this point in the history
… logs
  • Loading branch information
mbruin-NR committed Oct 23, 2024
1 parent 3d1ca9c commit 7740a72
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ - (void) testAutoCollectedLogs {
XCTFail(@"Timeout error");
}
}];
[NRAutoLogCollector restoreStandardOutputAndError];

NSError* error;
NSData* logData = [NRLogger logFileData:&error];
Expand Down Expand Up @@ -336,7 +337,6 @@ - (void) testAutoCollectedLogs {
}

XCTAssertEqual(foundCount, 6, @"Three remote messages should be found.");

Check failure on line 339 in Tests/Unit-Tests/NewRelicAgentTests/Uncategorized/NRLoggerTests.m

View workflow job for this annotation

GitHub Actions / TestWatchOS

testAutoCollectedLogs, ((foundCount) equal to (6)) failed: ("0") is not equal to ("6") - Three remote messages should be found.
[NRAutoLogCollector restoreStandardOutputAndError];
[NRMAFlags disableFeatures: NRFeatureFlag_RedirectStdOutStdErr];
}

Expand Down

0 comments on commit 7740a72

Please sign in to comment.