Skip to content

Commit 2c033fe

Browse files
committed
Use ConfigFileName from configuration
1 parent e46f779 commit 2c033fe

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

commands/case.go

+8-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,14 @@ func CustomCaseAction(context *cli.Context) error {
8989
return err
9090
}
9191

92-
metaData, err := config.LoadMetaFromPath(path.Join(cwd, "egor-meta.json"))
92+
93+
configuration, err := config.LoadDefaultConfiguration()
94+
if err != nil {
95+
color.Red("Failed to load egor configuration")
96+
return err
97+
}
98+
99+
metaData, err := config.LoadMetaFromPath(path.Join(cwd, configuration.ConfigFileName))
93100
if err != nil {
94101
color.Red("Failed to load egor MetaData ")
95102
return err

commands/case_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func TestAddNewCaseInput(t *testing.T) {
4242

4343
// create temp inputs directory
4444
_ = os.Mkdir("inputs", 0777)
45-
defer DeleteDir("input")
45+
defer DeleteDir("inputs")
4646

4747
inputLines := []string{"Hello", "World"}
4848
caseName := "test-2"

0 commit comments

Comments
 (0)