From 986b44c1bd2adfbe253aa9d3390fd2f5786b416b Mon Sep 17 00:00:00 2001 From: chen zhengwei Date: Mon, 23 Nov 2020 21:12:43 +0800 Subject: [PATCH] Update plugin/storage/es/options_test.go Co-authored-by: Albert <26584478+albertteoh@users.noreply.github.com> --- plugin/storage/es/options_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/storage/es/options_test.go b/plugin/storage/es/options_test.go index 1f7762f8a0f9..54cf603e1ae7 100644 --- a/plugin/storage/es/options_test.go +++ b/plugin/storage/es/options_test.go @@ -159,10 +159,10 @@ func TestIndexDateSeparator(t *testing.T) { flags []string wantDateLayout string }{ - {"not defined", []string{}, "2006-01-02"}, - {"empty string", []string{"--es.index-date-separator="}, "20060102"}, - {"normal separator", []string{"--es.index-date-separator=."}, "2006.01.02"}, - {"crossbar", []string{"--es.index-date-separator=-"}, "2006-01-02"}, + {"not defined (default)", []string{}, "2006-01-02"}, + {"empty separator", []string{"--es.index-date-separator="}, "20060102"}, + {"dot separator", []string{"--es.index-date-separator=."}, "2006.01.02"}, + {"crossbar separator", []string{"--es.index-date-separator=-"}, "2006-01-02"}, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) {