diff --git a/builder/amazon/common/cli_config_test.go b/builder/amazon/common/cli_config_test.go index 8ef775163..6a6dc7ed5 100644 --- a/builder/amazon/common/cli_config_test.go +++ b/builder/amazon/common/cli_config_test.go @@ -71,7 +71,7 @@ func TestAssumeRole(t *testing.T) { func mockConfig(t *testing.T) string { time := time.Now().UnixNano() - dir, err := ioutil.TempDir("", strconv.Itoa(time)) + dir, err := ioutil.TempDir("", strconv.FormatInt(time, 10)) if err != nil { t.Error(err) }