Skip to content

Commit

Permalink
Added the logger to help debug this test that fails on GH
Browse files Browse the repository at this point in the history
  • Loading branch information
mbruin-NR committed Jan 31, 2025
1 parent 2ae0b8f commit 51f2bd4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ @implementation NRMASAMTest

- (void)setUp {
[super setUp];
[NRLogger setLogLevels:NRLogLevelDebug];

manager = [self samTest];
[manager removeAllSessionAttributes];
Expand Down Expand Up @@ -288,6 +289,7 @@ - (void)waitForAttributesToPersist:(NSArray<NSString *> *)expectedAttributes tim
// Wait a short period before retrying
[NSThread sleepForTimeInterval:0.1];
}
XCTFail(@"Failed to persist expected attributes.");

Check failure on line 292 in Tests/Unit-Tests/NewRelicAgentTests/Analytics-Tests/NRMASAMTest.mm

View workflow job for this annotation

GitHub Actions / TestWatchOS

testPersistedSessionAnalytics, failed - Failed to persist expected attributes.
}

- (void)testPersistedSessionAnalytics {
Expand Down Expand Up @@ -336,7 +338,6 @@ - (void)testPersistedSessionAnalytics {
}

- (void) testClearPersistedSessionAnalytics {
NRMASAM *manager = [self samTest];
NSString *attribute = @"blarg";
NSString *attribute2 = @"blarg2";

Expand Down

0 comments on commit 51f2bd4

Please sign in to comment.