summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2023-09-18 18:21:04 +0800
committerchenzizhan <[email protected]>2023-10-08 17:04:43 +0800
commit5eab9ade75989f8912c3caf7ea1078cf6e90a843 (patch)
tree6be6a2e403a28cda06c203e0e2dfa80ea4ff4b36
parent018ec4d3dc315eb2a2418d038cb65deea1f725ed (diff)
fix ci
-rw-r--r--test/test_metric_histogram.cpp4
-rw-r--r--test/test_metric_hll.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/test_metric_histogram.cpp b/test/test_metric_histogram.cpp
index d720efa..fa13a2e 100644
--- a/test/test_metric_histogram.cpp
+++ b/test/test_metric_histogram.cpp
@@ -183,7 +183,7 @@ TEST(metric_test_histogram, can_add_0value) // histogram only allow min_val > 0,
}
extern "C" {
- bool is_hll(char *buf);
+ bool fieldstat_is_hll(char *buf);
}
TEST(metric_test_histogram, encode_decode_b64)
@@ -198,7 +198,7 @@ TEST(metric_test_histogram, encode_decode_b64)
size_t b64_len = 0;
histogram_encode_into_b64(h, &b64, &b64_len);
- EXPECT_FALSE(is_hll(b64));
+ EXPECT_FALSE(fieldstat_is_hll(b64));
struct hdr_histogram *h2 = histogram_decode_from_b64(b64, b64_len);
diff --git a/test/test_metric_hll.cpp b/test/test_metric_hll.cpp
index d886810..f09052a 100644
--- a/test/test_metric_hll.cpp
+++ b/test/test_metric_hll.cpp
@@ -168,7 +168,7 @@ TEST(metric_test_hll, serialize_with_b64_and_query)
extern "C" {
void *hll_base64_decode(char *buf);
- bool is_hll(char *buf);
+ bool fieldstat_is_hll(char *buf);
}
TEST(metric_test_hll, serialize_with_b64_and_query_with_python_api)
{
@@ -181,7 +181,7 @@ TEST(metric_test_hll, serialize_with_b64_and_query_with_python_api)
size_t blob_len = 0;
fieldstat_get_serialized_blob(instance, 0, 0, 0, &blob, &blob_len);
- bool flag = is_hll(blob);
+ bool flag = fieldstat_is_hll(blob);
EXPECT_EQ(flag, true);
void *hll_from_blob = hll_base64_decode(blob);