fix test times

mine
derailed 2019-03-26 12:59:18 -06:00
parent b88e0c9773
commit 0a1bc45f95
2 changed files with 4 additions and 4 deletions

View File

@ -30,8 +30,8 @@ archive:
darwin: Darwin darwin: Darwin
linux: Linux linux: Linux
windows: Windows windows: Windows
arm: 32-bit arm: arm32
arm64: 64-bit arm64: arm64
386: i386 386: i386
amd64: x86_64 amd64: x86_64
checksum: checksum:

View File

@ -80,7 +80,7 @@ func TestJobToCompletion(t *testing.T) {
} }
func TestJobToDuration(t *testing.T) { func TestJobToDuration(t *testing.T) {
t0 := testTime() t0 := testTime().UTC()
t1, t2 := metav1.Time{t0}, metav1.Time{t0.Add(10 * time.Second)} t1, t2 := metav1.Time{t0}, metav1.Time{t0.Add(10 * time.Second)}
uu := []struct { uu := []struct {
@ -98,7 +98,7 @@ func TestJobToDuration(t *testing.T) {
batchv1.JobStatus{ batchv1.JobStatus{
StartTime: &t1, StartTime: &t1,
}, },
"101d", "102d",
}, },
{ {
batchv1.JobStatus{ batchv1.JobStatus{