Skip to content

Commit

Permalink
Fix failed unit test
Browse files Browse the repository at this point in the history
Signed-off-by: JaeguKim <[email protected]>
  • Loading branch information
JaeguKim committed Apr 18, 2024
1 parent 074da9e commit 07324e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin/storage/es/samplingstore/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func NewSamplingStore(p SamplingStoreParams) *SamplingStore {
return &SamplingStore{
client: p.Client,
logger: p.Logger,
samplingIndexPrefix: p.PrefixedIndexName(),
samplingIndexPrefix: p.PrefixedIndexName() + indexPrefixSeparator,
indexDateLayout: p.IndexDateLayout,
maxDocCount: p.MaxDocCount,
indexRolloverFrequency: p.IndexRolloverFrequency,
Expand Down
2 changes: 1 addition & 1 deletion plugin/storage/es/samplingstore/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func TestNewIndexPrefix(t *testing.T) {
IndexDateLayout: "2006-01-02",
MaxDocCount: defaultMaxDocCount,
})
assert.Equal(t, test.expected+samplingIndex, r.samplingIndexPrefix)
assert.Equal(t, test.expected+samplingIndex+indexPrefixSeparator, r.samplingIndexPrefix)
})
}
}
Expand Down

0 comments on commit 07324e2

Please sign in to comment.