Skip to content

Commit fd41fe4

Browse files
authored
Un-harcode config file path (#2421)
1 parent a753275 commit fd41fe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pkg/agent/application/coordinator/diagnostics_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ func TestCoordinatorDiagnosticHooks(t *testing.T) {
235235
mustWriteToChannelBeforeTimeout(t, tt.varsProvider(t), helper.varsChannel, 100*time.Millisecond)
236236

237237
// Inject initial configuration - after starting coordinator
238-
configBytes, err := os.ReadFile("./testdata/simple_config/elastic-agent.yml")
238+
configBytes, err := os.ReadFile(tt.configFilePath)
239239
require.NoError(t, err)
240240

241241
initialConf := config.MustNewConfigFrom(configBytes)

0 commit comments

Comments
 (0)