diff --git a/cmd/esmapping-generator/app/flags_test.go b/cmd/esmapping-generator/app/flags_test.go index b91ac7b09f9..a7aba2f7f96 100644 --- a/cmd/esmapping-generator/app/flags_test.go +++ b/cmd/esmapping-generator/app/flags_test.go @@ -45,7 +45,7 @@ func TestOptionsWithFlags(t *testing.T) { o.AddFlags(&c) err := c.ParseFlags([]string{ "--mapping=jaeger-span", - "--es-version=6", + "--es-version=7", "--shards=5", "--replicas=1", "--index-prefix=test", @@ -54,7 +54,7 @@ func TestOptionsWithFlags(t *testing.T) { }) require.NoError(t, err) assert.Equal(t, "jaeger-span", o.Mapping) - assert.Equal(t, uint(6), o.EsVersion) + assert.Equal(t, uint(7), o.EsVersion) assert.Equal(t, int64(5), o.Shards) assert.Equal(t, int64(1), o.Replicas) assert.Equal(t, "test", o.IndexPrefix)