From 7409d9f2174e842b1d51343a18478294ae455f0d Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 18 Oct 2017 09:23:41 -0700 Subject: fix job test race condition (#7647) --- api4/job_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'api4') diff --git a/api4/job_test.go b/api4/job_test.go index e2b261d44..685cab4d1 100644 --- a/api4/job_test.go +++ b/api4/job_test.go @@ -75,21 +75,22 @@ func TestGetJobs(t *testing.T) { jobType := model.NewId() + t0 := model.GetMillis() jobs := []*model.Job{ { Id: model.NewId(), Type: jobType, - CreateAt: model.GetMillis() + 1, + CreateAt: t0 + 1, }, { Id: model.NewId(), Type: jobType, - CreateAt: model.GetMillis(), + CreateAt: t0, }, { Id: model.NewId(), Type: jobType, - CreateAt: model.GetMillis() + 2, + CreateAt: t0 + 2, }, } -- cgit v1.2.3-1-g7c22