Fixes more windows testing errors.
"constant 9999999999 overflows int" running test on CI server. Replaced with timestamp to unixnano
This commit is contained in:
parent
d25ba245f4
commit
b75d561c56
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue