@@ -8125,6 +8125,7 @@ static void test_segment_record_error_with_additional_params(void) {
8125
8125
txn , 1 , true, "low priority message" , "low priority class" , "random.php" ,
8126
8126
150 , "random context" , 256 , "[\"A\",\"B\"]" );
8127
8127
tlib_pass_if_null ("No segment error created" , segment -> error );
8128
+ tlib_pass_if_null ("No txn error created" , txn -> error );
8128
8129
8129
8130
/* Enable error collection */
8130
8131
txn -> options .err_enabled = 1 ;
@@ -8164,7 +8165,8 @@ static void test_segment_record_error_with_additional_params(void) {
8164
8165
segment -> error -> error_class ,
8165
8166
nr_error_get_klass (txn -> error ));
8166
8167
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*/
8168
8170
nr_txn_record_error_with_additional_attributes (
8169
8171
txn , 1 , true, "random message 2" , "random class 2" , "random.php2" ,
8170
8172
150 , "random context2" , 256 , "[\"A\",\"B\"]" );
0 commit comments