Skip to content

Commit

Permalink
chore(axiom): Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zsistla authored Jan 8, 2025
1 parent e709661 commit fde6d51
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions axiom/tests/test_segment_private.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,9 @@ static void test_destroy_typed_attributes(void) {
s.typed_attributes->message.messaging_system = nr_strdup("aws_sqs");
s.typed_attributes->message.server_address = nr_strdup("localhost");

/*
* Valgrind shall affirm that the attributes were cleaned up.
*/
nr_segment_destroy_typed_attributes(NR_SEGMENT_MESSAGE, &s.typed_attributes);

/*
Expand All @@ -395,6 +398,9 @@ static void test_destroy_typed_attributes(void) {
s.typed_attributes->external.procedure = nr_strdup(test_string);
s.typed_attributes->external.status = 200;

/*
* Valgrind shall affirm that the attributes were cleaned up.
*/
nr_segment_destroy_typed_attributes(NR_SEGMENT_EXTERNAL, &s.typed_attributes);

/*
Expand All @@ -413,6 +419,9 @@ static void test_destroy_typed_attributes(void) {
= nr_strdup(test_string);
s.typed_attributes->datastore.instance.database_name = nr_strdup(test_string);

/*
* Valgrind shall affirm that the attributes were cleaned up.
*/
nr_segment_destroy_typed_attributes(NR_SEGMENT_DATASTORE,
&s.typed_attributes);
}
Expand Down

0 comments on commit fde6d51

Please sign in to comment.