Skip to content

Commit e4c70b3

Browse files
committed
fix: fix windows unit test
1 parent 0101787 commit e4c70b3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

internal/config/config_file_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ func Test_ConfigDir(t *testing.T) {
180180
{
181181
name: "INSTILL_CONFIG_DIR specified",
182182
env: map[string]string{
183-
"INSTILL_CONFIG_DIR": filepath.Join(tempDir, "INSTILL_CONFIG_DIR"),
183+
"INSTILL_CONFIG_DIR": filepath.Join(tempDir, "instill_config_dir"),
184184
},
185-
output: filepath.Join(tempDir, "INSTILL_CONFIG_DIR"),
185+
output: filepath.Join(tempDir, "instill_config_dir"),
186186
},
187187
{
188188
name: "XDG_CONFIG_HOME specified",
@@ -194,27 +194,27 @@ func Test_ConfigDir(t *testing.T) {
194194
{
195195
name: "INSTILL_CONFIG_DIR and XDG_CONFIG_HOME specified",
196196
env: map[string]string{
197-
"INSTILL_CONFIG_DIR": filepath.Join(tempDir, "INSTILL_CONFIG_DIR"),
197+
"INSTILL_CONFIG_DIR": filepath.Join(tempDir, "instill_config_dir"),
198198
"XDG_CONFIG_HOME": tempDir,
199199
},
200-
output: filepath.Join(tempDir, "INSTILL_CONFIG_DIR"),
200+
output: filepath.Join(tempDir, "instill_config_dir"),
201201
},
202202
{
203203
name: "AppData specified",
204204
onlyWindows: true,
205205
env: map[string]string{
206206
"AppData": tempDir,
207207
},
208-
output: filepath.Join(tempDir, "INSTILL CLI"),
208+
output: filepath.Join(tempDir, "Instill CLI"),
209209
},
210210
{
211211
name: "INSTILL_CONFIG_DIR and AppData specified",
212212
onlyWindows: true,
213213
env: map[string]string{
214-
"INSTILL_CONFIG_DIR": filepath.Join(tempDir, "INSTILL_CONFIG_DIR"),
214+
"INSTILL_CONFIG_DIR": filepath.Join(tempDir, "instill_config_dir"),
215215
"AppData": tempDir,
216216
},
217-
output: filepath.Join(tempDir, "INSTILL_CONFIG_DIR"),
217+
output: filepath.Join(tempDir, "instill_config_dir"),
218218
},
219219
{
220220
name: "XDG_CONFIG_HOME and AppData specified",

0 commit comments

Comments
 (0)