From 3a905a8e87949643f338b36e4dfadd26c4157240 Mon Sep 17 00:00:00 2001 From: Takahiro Yamashita Date: Sat, 18 Dec 2021 10:36:01 +0900 Subject: [PATCH] tests: runtime: out_es: remove op_type to fix failing test Signed-off-by: Takahiro Yamashita --- tests/runtime/out_elasticsearch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/runtime/out_elasticsearch.c b/tests/runtime/out_elasticsearch.c index 3b0e0ad1ca6..4b6ddbff71c 100644 --- a/tests/runtime/out_elasticsearch.c +++ b/tests/runtime/out_elasticsearch.c @@ -13,7 +13,7 @@ static void cb_check_index_type(void *ctx, int ffd, { char *p; char *out_js = res_data; - char *index_line = "{\"index\":{\"_index\":\"index_test\",\"_type\":\"type_test\"}"; + char *index_line = ":{\"_index\":\"index_test\",\"_type\":\"type_test\"}"; p = strstr(out_js, index_line); TEST_CHECK(p != NULL); @@ -27,7 +27,7 @@ static void cb_check_logstash_format(void *ctx, int ffd, { char *p; char *out_js = res_data; - char *index_line = "{\"index\":{\"_index\":\"prefix-2015-11-24\",\"_type\":\"_doc\"}"; + char *index_line = ":{\"_index\":\"prefix-2015-11-24\",\"_type\":\"_doc\"}"; p = strstr(out_js, index_line); TEST_CHECK(p != NULL);