mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 05:02:35 +08:00
Tests: Require GrafanaOpts when creating Grafana dir (#97825)
I don't see a reason to accept a variable amount here, as we never use it. The only use I can see is optionally including the opts, which isn't necessary and only complicates matters when an empty struct would do just as well: the options are all created to be assumed zero-values already, in case a test doesn't need that option set.
This commit is contained in:

committed by
GitHub

parent
47e58d5903
commit
e6a6fc6f74
@ -124,7 +124,7 @@ func TestValidatePluginRepoConfig(t *testing.T) {
|
||||
}
|
||||
|
||||
// GrafanaComApiUrl is set to the default path https://grafana.com/api
|
||||
grafDir, cfgPath := testinfra.CreateGrafDir(t)
|
||||
grafDir, cfgPath := testinfra.CreateGrafDir(t, testinfra.GrafanaOpts{})
|
||||
|
||||
// overriding the GrafanaComApiUrl to https://grafana-dev.com
|
||||
c, err := commandstest.NewCliContext(map[string]string{
|
||||
|
Reference in New Issue
Block a user