Fixes more windows testing errors.

"constant 9999999999 overflows int" running test on CI server. Replaced with timestamp to unixnano
This commit is contained in:
Christopher Gerber 2016-02-04 16:12:18 -06:00
parent d25ba245f4
commit b75d561c56
1 changed files with 2 additions and 5 deletions

View File

@ -2,7 +2,6 @@ package common
import ( import (
"io/ioutil" "io/ioutil"
"math/rand"
"os" "os"
"path" "path"
"strconv" "strconv"
@ -71,10 +70,8 @@ func TestAssumeRole(t *testing.T) {
} }
func mockConfig(t *testing.T) string { func mockConfig(t *testing.T) string {
time := rand.NewSource(time.Now().UnixNano()) time := time.Now().UnixNano()
r := rand.New(time) dir, err := ioutil.TempDir("", strconv.Itoa(time))
v := r.Intn(9999999999)
dir, err := ioutil.TempDir("", strconv.Itoa(v))
if err != nil { if err != nil {
t.Error(err) t.Error(err)
} }