Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine Toulme <[email protected]>
  • Loading branch information
pszkamruk-splunk and atoulme authored Jan 10, 2025
1 parent ba02dfd commit 4df1c46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functional_tests/configuration_switching_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,12 @@ func testIndexSwitch(t *testing.T) {
var indices []string
logs := agentLogsConsumer.AllLogs()
sourcetypes, indices = getLogsIndexAndSourceType(logs)
assert.True(t, len(sourcetypes) > 1) // we are receiving logs from different containers
assert.GreaterThan(t, len(sourcetypes), 1) // we are receiving logs from different containers
// check sourcetypes have same prefix
prefix := "kube:container:"
for _, element := range sourcetypes {
if !strings.HasPrefix(element, prefix) {
t.Errorf("Element does not start with the prefix '%s': %s", prefix, element)
t.Errorf("Element does not start with the prefix %q: %s", prefix, element)
}
}
assert.NotContains(t, sourcetypes, nonDefaultSourcetype)
Expand Down

0 comments on commit 4df1c46

Please sign in to comment.