summaryrefslogtreecommitdiff
path: root/src/test/test_hs_metrics.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-10-27 12:59:29 -0400
committerDavid Goulet <dgoulet@torproject.org>2020-10-27 13:00:20 -0400
commit362229f184c92712ee5a3027ce5d29024ca5b382 (patch)
treecfa515aa6d0c9e15ae7d794fd26cb7b5d4fc20d1 /src/test/test_hs_metrics.c
parent5de66739724451801487dbec0eb210c0595cc00f (diff)
downloadtor-362229f184c92712ee5a3027ce5d29024ca5b382.tar.gz
tor-362229f184c92712ee5a3027ce5d29024ca5b382.zip
lib/metrics: Fix wrong macro expansion
The "METRICS_PREFIX" was not expanded but rather used as a litteral. Fix that by just removing the define and using "tor_" directly. Reviewed-by: Alexander Færøy <ahf@torproject.org> Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test/test_hs_metrics.c')
-rw-r--r--src/test/test_hs_metrics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_hs_metrics.c b/src/test/test_hs_metrics.c
index dd123eb6f1..326212ae1d 100644
--- a/src/test/test_hs_metrics.c
+++ b/src/test/test_hs_metrics.c
@@ -44,7 +44,7 @@ test_metrics(void *arg)
/* Confirm the entry value. */
const smartlist_t *entries = metrics_store_get_all(service->metrics.store,
- "hs_intro_num_total");
+ "tor_hs_intro_num_total");
tt_assert(entries);
tt_int_op(smartlist_len(entries), OP_EQ, 1);
const metrics_store_entry_t *entry = smartlist_get(entries, 0);