From 54e9690dff30c36a5c2b2b01e794652b706c933b Mon Sep 17 00:00:00 2001 From: DanHam Date: Wed, 25 Apr 2018 12:39:55 +0100 Subject: [PATCH] Remove tmp files created by builder/amazon/common tests --- builder/amazon/common/run_config_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builder/amazon/common/run_config_test.go b/builder/amazon/common/run_config_test.go index 7cf42ded1..a88730e82 100644 --- a/builder/amazon/common/run_config_test.go +++ b/builder/amazon/common/run_config_test.go @@ -119,6 +119,7 @@ func TestRunConfigPrepare_UserData(t *testing.T) { if err != nil { t.Fatalf("err: %s", err) } + defer os.Remove(tf.Name()) defer tf.Close() c.UserData = "foo" @@ -143,6 +144,7 @@ func TestRunConfigPrepare_UserDataFile(t *testing.T) { if err != nil { t.Fatalf("err: %s", err) } + defer os.Remove(tf.Name()) defer tf.Close() c.UserDataFile = tf.Name()