summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_easy_fs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_easy_fs.cpp b/test/test_easy_fs.cpp
index 0595593..d3f45b7 100644
--- a/test/test_easy_fs.cpp
+++ b/test/test_easy_fs.cpp
@@ -42,15 +42,15 @@ TEST(test_easy_fieldstat, output_to_buff)
TEST(test_easy_fieldstat, output_to_buff_with_delta)
{
- struct fieldstat_easy *fse = fieldstat_easy_new(10, NULL, &TEST_TAG_STRING, 1);
+ struct fieldstat_easy *fse = fieldstat_easy_new(1, NULL, NULL, 0);
fieldstat_easy_enable_delta_in_active_output(fse);
fieldstat_easy_register_counter(fse, "metric counter");
- fieldstat_easy_counter_incrby(fse, 0, 0, &TEST_TAG_INT, 1, 1);
+ fieldstat_easy_counter_incrby(fse, 0, 0, NULL, 0, 1);
char *buff = NULL;
size_t buff_len = 0;
fieldstat_easy_output(fse, &buff, &buff_len);
free(buff);
- fieldstat_easy_counter_incrby(fse, 0, 0, &TEST_TAG_INT, 1, 1);
+ fieldstat_easy_counter_incrby(fse, 0, 0, NULL, 0, 1);
fieldstat_easy_output(fse, &buff, &buff_len);
cJSON *root = cJSON_Parse(buff);