File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ var flagMapping = map[string]string{
103103
104104func TestCLI (t * testing.T ) {
105105 // Find all test files in testdata/
106- testFiles , err := filepath .Glob ("testdata/ *.yaml" )
106+ testFiles , err := filepath .Glob (filepath . Join ( "testdata" , " *.yaml") )
107107 if err != nil {
108108 t .Fatalf ("Failed to find test files: %v" , err )
109109 }
@@ -227,7 +227,7 @@ type CmdTestSuite []CmdTestCase
227227// TestCLICommands runs command-based tests from testdata/cmd/*.yaml
228228func TestCLICommands (t * testing.T ) {
229229 // Find all test files in testdata/cmd/
230- testFiles , err := filepath .Glob ("testdata/ cmd/ *.yaml" )
230+ testFiles , err := filepath .Glob (filepath . Join ( "testdata" , " cmd" , " *.yaml") )
231231 if err != nil {
232232 t .Fatalf ("Failed to find test files: %v" , err )
233233 }
You can’t perform that action at this time.
0 commit comments