Skip to content

Commit 785e83c

Browse files
hahuja2mfulb
authored andcommitted
chore(axiom): modify unit tests
1 parent 62afe8a commit 785e83c

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
@@ -3902,7 +3902,10 @@ static void test_error_to_event(void) {
39023902
"\"nr.transactionGuid\":\"abcd\","
39033903
"\"guid\":\"abcd\""
39043904
"},"
3905-
"{\"user_long\":1},"
3905+
"{"
3906+
"\"user_long\":1,"
3907+
"\"user.error.message\":\"the_msg\""
3908+
"},"
39063909
"{\"agent_long\":2}"
39073910
"]",
39083911
nr_analytics_event_json(event));
@@ -3931,7 +3934,10 @@ static void test_error_to_event(void) {
39313934
"\"nr.transactionGuid\":\"abcd\","
39323935
"\"guid\":\"abcd\""
39333936
"},"
3934-
"{\"user_long\":1},"
3937+
"{"
3938+
"\"user_long\":1,"
3939+
"\"user.error.message\":\"the_msg\""
3940+
"},"
39353941
"{\"agent_long\":2}"
39363942
"]");
39373943
nr_analytics_event_destroy(&event);
@@ -3960,7 +3966,10 @@ static void test_error_to_event(void) {
39603966
"\"nr.syntheticsJobId\":\"b\","
39613967
"\"nr.syntheticsMonitorId\":\"c\""
39623968
"},"
3963-
"{\"user_long\":1},"
3969+
"{"
3970+
"\"user_long\":1,"
3971+
"\"user.error.message\":\"the_msg\""
3972+
"},"
39643973
"{\"agent_long\":2}"
39653974
"]");
39663975
nr_analytics_event_destroy(&event);

0 commit comments

Comments
 (0)