mirror of https://github.com/databricks/cli.git
add close for files
This commit is contained in:
parent
fb2da25f28
commit
5771b62afd
|
@ -23,6 +23,7 @@ func TestTemplateInitializationForDevConfig(t *testing.T) {
|
||||||
tmp := t.TempDir()
|
tmp := t.TempDir()
|
||||||
f, err := os.Create(filepath.Join(tmp, "config.json"))
|
f, err := os.Create(filepath.Join(tmp, "config.json"))
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
defer f.Close()
|
||||||
_, err = f.WriteString(`
|
_, err = f.WriteString(`
|
||||||
{
|
{
|
||||||
"project_name": "development_project",
|
"project_name": "development_project",
|
||||||
|
@ -52,6 +53,7 @@ func TestTemplateInitializationForProdConfig(t *testing.T) {
|
||||||
tmp := t.TempDir()
|
tmp := t.TempDir()
|
||||||
f, err := os.Create(filepath.Join(tmp, "config.json"))
|
f, err := os.Create(filepath.Join(tmp, "config.json"))
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
defer f.Close()
|
||||||
_, err = f.WriteString(`
|
_, err = f.WriteString(`
|
||||||
{
|
{
|
||||||
"project_name": "production_project",
|
"project_name": "production_project",
|
||||||
|
|
Loading…
Reference in New Issue