summaryrefslogtreecommitdiff
path: root/test/maat_input_mode_gtest.cpp
diff options
context:
space:
mode:
authorliuwentan <[email protected]>2023-05-04 17:10:19 +0800
committerliuwentan <[email protected]>2023-05-04 17:10:19 +0800
commit33015d5aac355773f302151b2f8a7f8986acd261 (patch)
treece3f68a6c82aa2650b262ab68a3a162fe7b96537 /test/maat_input_mode_gtest.cpp
parentf087a4382d0b4831aebfadd6c165dba848084a3c (diff)
support parse encrypted json config
Diffstat (limited to 'test/maat_input_mode_gtest.cpp')
-rw-r--r--test/maat_input_mode_gtest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/maat_input_mode_gtest.cpp b/test/maat_input_mode_gtest.cpp
index eecf582..82b4d2e 100644
--- a/test/maat_input_mode_gtest.cpp
+++ b/test/maat_input_mode_gtest.cpp
@@ -189,7 +189,7 @@ TEST(redis_mode, maat_scan_string) {
char tmp_iris_full_idx_path[PATH_MAX] = {0};
snprintf(tmp_iris_full_idx_path, sizeof(tmp_iris_full_idx_path), "%s/index", json_iris_path);
config_monitor_traverse(0, tmp_iris_full_idx_path, NULL, count_line_num_cb, NULL,
- &total_line_cnt, g_logger);
+ &total_line_cnt, NULL, g_logger);
struct serial_rule *s_rule = ALLOC(struct serial_rule, total_line_cnt);
s_rule->ref_ctx = c;
@@ -198,7 +198,7 @@ TEST(redis_mode, maat_scan_string) {
absolute_expire_time = server_time + 300;
config_monitor_traverse(0, tmp_iris_full_idx_path, NULL, make_serial_rule, NULL,
- s_rule, g_logger);
+ s_rule, NULL, g_logger);
s_rule->ref_ctx = NULL;
int success_cnt = 0;
do {