Skip to content

Commit

Permalink
Update plugin/storage/es/options_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Albert <26584478+albertteoh@users.noreply.github.com>
  • Loading branch information
sniperking1234 and albertteoh committed Nov 23, 2020
1 parent 3d4ec0a commit 986b44c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin/storage/es/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 986b44c

Please sign in to comment.