Skip to content

Commit 42a7a81

Browse files
committed
chore(axiom): update unit tests
1 parent 06430a2 commit 42a7a81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

axiom/tests/test_txn.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8125,6 +8125,7 @@ static void test_segment_record_error_with_additional_params(void) {
81258125
txn, 1, true, "low priority message", "low priority class", "random.php",
81268126
150, "random context", 256, "[\"A\",\"B\"]");
81278127
tlib_pass_if_null("No segment error created", segment->error);
8128+
tlib_pass_if_null("No txn error created", txn->error);
81288129

81298130
/* Enable error collection */
81308131
txn->options.err_enabled = 1;
@@ -8164,7 +8165,8 @@ static void test_segment_record_error_with_additional_params(void) {
81648165
segment->error->error_class,
81658166
nr_error_get_klass(txn->error));
81668167

8167-
/* Multiple errors on the same segment */
8168+
/* Multiple errors on the same segment where the new error is
8169+
prioritized over the previous because of priority level*/
81688170
nr_txn_record_error_with_additional_attributes(
81698171
txn, 1, true, "random message 2", "random class 2", "random.php2",
81708172
150, "random context2", 256, "[\"A\",\"B\"]");

0 commit comments

Comments
 (0)