Skip to content

Commit 62afe8a

Browse files
hahuja2mfulb
authored andcommitted
chore(axiom): update unit tests
1 parent 8099059 commit 62afe8a

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
@@ -8161,6 +8161,7 @@ static void test_segment_record_error_with_additional_params(void) {
81618161
txn, 1, true, "low priority message", "low priority class", "random.php",
81628162
150, "random context", 256, "[\"A\",\"B\"]");
81638163
tlib_pass_if_null("No segment error created", segment->error);
8164+
tlib_pass_if_null("No txn error created", txn->error);
81648165

81658166
/* Enable error collection */
81668167
txn->options.err_enabled = 1;
@@ -8200,7 +8201,8 @@ static void test_segment_record_error_with_additional_params(void) {
82008201
segment->error->error_class,
82018202
nr_error_get_klass(txn->error));
82028203

8203-
/* Multiple errors on the same segment */
8204+
/* Multiple errors on the same segment where the new error is
8205+
prioritized over the previous because of priority level*/
82048206
nr_txn_record_error_with_additional_attributes(
82058207
txn, 1, true, "random message 2", "random class 2", "random.php2",
82068208
150, "random context2", 256, "[\"A\",\"B\"]");

0 commit comments

Comments
 (0)