summaryrefslogtreecommitdiffstats
path: root/api4/job_test.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-10-18 09:23:41 -0700
committerJoram Wilander <jwawilander@gmail.com>2017-10-18 12:23:41 -0400
commit7409d9f2174e842b1d51343a18478294ae455f0d (patch)
tree4cb68fe3ca2cfae578133e306cc68fbf644ddeb2 /api4/job_test.go
parent3c0ccaafe79375d18e2b7359bb8f6eaee4eb34df (diff)
downloadchat-7409d9f2174e842b1d51343a18478294ae455f0d.tar.gz
chat-7409d9f2174e842b1d51343a18478294ae455f0d.tar.bz2
chat-7409d9f2174e842b1d51343a18478294ae455f0d.zip
fix job test race condition (#7647)
Diffstat (limited to 'api4/job_test.go')
-rw-r--r--api4/job_test.go7
1 files changed, 4 insertions, 3 deletions
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,
},
}