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