Skip to content

Commit 8a1baca

Browse files
committed
chore(axiom): modify unit tests
1 parent 42a7a81 commit 8a1baca

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

axiom/tests/test_cmd_txndata.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,9 @@ static void test_encode_error_events(void) {
673673
"\"nr.transactionGuid\":\"abcd\","
674674
"\"guid\":\"abcd\""
675675
"},"
676-
"{},"
676+
"{"
677+
"\"user.error.message\":\"msg\""
678+
"},"
677679
"{}"
678680
"]"),
679681
nr_flatbuffers_table_read_bytes(&tbl, EVENT_FIELD_DATA),

axiom/tests/test_txn.c

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3901,7 +3901,10 @@ static void test_error_to_event(void) {
39013901
"\"nr.transactionGuid\":\"abcd\","
39023902
"\"guid\":\"abcd\""
39033903
"},"
3904-
"{\"user_long\":1},"
3904+
"{"
3905+
"\"user_long\":1,"
3906+
"\"user.error.message\":\"the_msg\""
3907+
"},"
39053908
"{\"agent_long\":2}"
39063909
"]",
39073910
nr_analytics_event_json(event));
@@ -3930,7 +3933,10 @@ static void test_error_to_event(void) {
39303933
"\"nr.transactionGuid\":\"abcd\","
39313934
"\"guid\":\"abcd\""
39323935
"},"
3933-
"{\"user_long\":1},"
3936+
"{"
3937+
"\"user_long\":1,"
3938+
"\"user.error.message\":\"the_msg\""
3939+
"},"
39343940
"{\"agent_long\":2}"
39353941
"]");
39363942
nr_analytics_event_destroy(&event);
@@ -3959,7 +3965,10 @@ static void test_error_to_event(void) {
39593965
"\"nr.syntheticsJobId\":\"b\","
39603966
"\"nr.syntheticsMonitorId\":\"c\""
39613967
"},"
3962-
"{\"user_long\":1},"
3968+
"{"
3969+
"\"user_long\":1,"
3970+
"\"user.error.message\":\"the_msg\""
3971+
"},"
39633972
"{\"agent_long\":2}"
39643973
"]");
39653974
nr_analytics_event_destroy(&event);

0 commit comments

Comments
 (0)