Skip to content

Commit

Permalink
Update options_test.go
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Zhengwei <[email protected]>

Signed-off-by: chen zhengwei <[email protected]>
  • Loading branch information
sniperking1234 committed Nov 23, 2020
1 parent 4f722a1 commit 7b4e2de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/storage/es/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ func TestIndexDateSeparator(t *testing.T) {
{"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"},
{"backslash separator", []string{"--es.index-date-separator=/"}, "2006/01/02"},
{"multiple characters separator", []string{"--es.index-date-separator=' '"}, "2006' '01' '02"},
{"slash separator", []string{"--es.index-date-separator=/"}, "2006/01/02"},
{"empty string with single quotes", []string{"--es.index-date-separator=''"}, "2006''01''02"},
}
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
Expand Down

0 comments on commit 7b4e2de

Please sign in to comment.