diff --git a/internal/init_test.go b/internal/init_test.go index 869be19de..b6f74252b 100644 --- a/internal/init_test.go +++ b/internal/init_test.go @@ -23,6 +23,7 @@ func TestTemplateInitializationForDevConfig(t *testing.T) { tmp := t.TempDir() f, err := os.Create(filepath.Join(tmp, "config.json")) require.NoError(t, err) + defer f.Close() _, err = f.WriteString(` { "project_name": "development_project", @@ -52,6 +53,7 @@ func TestTemplateInitializationForProdConfig(t *testing.T) { tmp := t.TempDir() f, err := os.Create(filepath.Join(tmp, "config.json")) require.NoError(t, err) + defer f.Close() _, err = f.WriteString(` { "project_name": "production_project",