Skip to content

Commit 8e8674f

Browse files
add test interaction history list
1 parent 4a92c67 commit 8e8674f

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <string.h>
1313
#include <errno.h>
1414
#include <sys/stat.h>
15+
#import "NRMAInteractionHistory.h"
1516

1617
@interface NRMAExceptionMetaDataTest : XCTestCase
1718

@@ -31,6 +32,7 @@ - (void)tearDown
3132
[super tearDown];
3233
}
3334

35+
// test
3436
- (void)test_NRMA_writeNRMeta
3537
{
3638

@@ -68,7 +70,17 @@ - (void)test_NRMA_writeNRMeta
6870
NRMA_setDiskFree(123456);
6971
NRMA_setAccountId(2);
7072
NRMA_setAgentId(1);
71-
73+
74+
75+
// Add interactions.
76+
77+
long long interactionTime = 1000;
78+
NSString* interactionName = @"TestTrace";
79+
NRMA__AddInteraction(interactionName.UTF8String, interactionTime);
80+
long long interactionTime2 = 2000;
81+
NSString* interactionName2 = @"TestTrace2";
82+
NRMA__AddInteraction(interactionName2.UTF8String, interactionTime2);
83+
7284
NRMA_writeNRMeta(NULL, NULL, NULL);
7385

7486

0 commit comments

Comments
 (0)