Skip to content

Commit

Permalink
chore(agent): define version at the top
Browse files Browse the repository at this point in the history
  • Loading branch information
hahuja2 committed Apr 9, 2024
1 parent 5eedee9 commit 15c0422
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions agent/tests/test_fw_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ static void test_fw_supportability_metrics(void) {
#define LIBRARY_MAJOR_VERSION "7"
#define LIBRARY_MAJOR_VERSION_2 "10"
#define LIBRARY_MAJOR_VERSION_3 "100"
#define LIBRARY_MAJOR_VERSION_4 "1.23"
#define LIBRARY_MAJOR_VERSION_5 "12.34"
#define LIBRARY_MAJOR_VERSION_6 "123.45"
#define LIBRARY_METRIC "Supportability/library/" LIBRARY_NAME "/detected"
#define LOGGING_LIBRARY_METRIC "Supportability/Logging/PHP/" LIBRARY_NAME
#define PACKAGE_METRIC "Supportability/PHP/package/" LIBRARY_NAME
Expand Down Expand Up @@ -85,10 +88,6 @@ static void test_fw_supportability_metrics(void) {
nrm_find(txn->unscoped_metrics, PACKAGE_METRIC
"/" LIBRARY_MAJOR_VERSION_3 "/detected"));

#define LIBRARY_MAJOR_VERSION_4 "1.23"
#define LIBRARY_MAJOR_VERSION_5 "12.34"
#define LIBRARY_MAJOR_VERSION_6 "123.45"

nr_fw_support_add_package_supportability_metric(txn, LIBRARY_NAME,
LIBRARY_MAJOR_VERSION_4);
tlib_pass_if_not_null(
Expand Down

0 comments on commit 15c0422

Please sign in to comment.