@@ -8161,6 +8161,7 @@ static void test_segment_record_error_with_additional_params(void) {
8161
8161
txn , 1 , true, "low priority message" , "low priority class" , "random.php" ,
8162
8162
150 , "random context" , 256 , "[\"A\",\"B\"]" );
8163
8163
tlib_pass_if_null ("No segment error created" , segment -> error );
8164
+ tlib_pass_if_null ("No txn error created" , txn -> error );
8164
8165
8165
8166
/* Enable error collection */
8166
8167
txn -> options .err_enabled = 1 ;
@@ -8200,7 +8201,8 @@ static void test_segment_record_error_with_additional_params(void) {
8200
8201
segment -> error -> error_class ,
8201
8202
nr_error_get_klass (txn -> error ));
8202
8203
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*/
8204
8206
nr_txn_record_error_with_additional_attributes (
8205
8207
txn , 1 , true, "random message 2" , "random class 2" , "random.php2" ,
8206
8208
150 , "random context2" , 256 , "[\"A\",\"B\"]" );
0 commit comments