Skip to content

Commit

Permalink
removing const from tests and added only array
Browse files Browse the repository at this point in the history
  • Loading branch information
gizas committed Mar 13, 2024
1 parent 3c291a5 commit 95ed1dd
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions utils/hints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,8 @@ func TestGetProcessors(t *testing.T) {
}

func TestGenerateHints(t *testing.T) {
const (
integration = "package"
datastreams = "data_streams"
host = "host"
period = "period"
timeout = "timeout"
metricspath = "metrics_path"
username = "username"
password = "password"
stream = "stream" // this is the container stream: stdout/stderr
processors = "processors"
)

var allSupportedHints = []string{"enabled", "module", integration, datastreams, host, period, timeout, metricspath, username, password, stream, processors, "multiline", "json", "disable"}
var allSupportedHints = []string{"enabled", "module", "integration", "datas_treams", "host", "period", "timeout", "metrics_path", "username", "password", "stream", "processors", "multiline", "json", "disable"}

tests := []struct {
name string
Expand Down

0 comments on commit 95ed1dd

Please sign in to comment.