From 0039f67a2f6633db3188d3ce3b98854a53d82257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferdinand=20M=C3=BCtsch?= Date: Wed, 15 Dec 2021 10:51:08 +0100 Subject: [PATCH] fix: duration test --- services/duration_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/services/duration_test.go b/services/duration_test.go index 3ac4c78..f40111f 100644 --- a/services/duration_test.go +++ b/services/duration_test.go @@ -42,7 +42,7 @@ func (suite *DurationServiceTestSuite) SetupSuite() { suite.TestStartTime = time.Unix(0, MinUnixTime1) suite.TestHeartbeats = []*models.Heartbeat{ { - ID: uint(rand.Uint32()), + ID: rand.Uint64(), UserID: TestUserId, Project: TestProject1, Language: TestLanguageGo, @@ -52,7 +52,7 @@ func (suite *DurationServiceTestSuite) SetupSuite() { Time: models.CustomTime(suite.TestStartTime), // 0:00 }, { - ID: uint(rand.Uint32()), + ID: rand.Uint64(), UserID: TestUserId, Project: TestProject1, Language: TestLanguageGo, @@ -62,7 +62,7 @@ func (suite *DurationServiceTestSuite) SetupSuite() { Time: models.CustomTime(suite.TestStartTime.Add(30 * time.Second)), // 0:30 }, { - ID: uint(rand.Uint32()), + ID: rand.Uint64(), UserID: TestUserId, Project: TestProject1, Language: TestLanguageGo, @@ -72,7 +72,7 @@ func (suite *DurationServiceTestSuite) SetupSuite() { Time: models.CustomTime(suite.TestStartTime.Add((30 + 130) * time.Second)), // 2:40 }, { - ID: uint(rand.Uint32()), + ID: rand.Uint64(), UserID: TestUserId, Project: TestProject1, Language: TestLanguageGo, @@ -82,7 +82,7 @@ func (suite *DurationServiceTestSuite) SetupSuite() { Time: models.CustomTime(suite.TestStartTime.Add(3 * time.Minute)), // 3:00 }, { - ID: uint(rand.Uint32()), + ID: rand.Uint64(), UserID: TestUserId, Project: TestProject1, Language: TestLanguageGo, @@ -92,7 +92,7 @@ func (suite *DurationServiceTestSuite) SetupSuite() { Time: models.CustomTime(suite.TestStartTime.Add(3*time.Minute + 10*time.Second)), // 3:10 }, { - ID: uint(rand.Uint32()), + ID: rand.Uint64(), UserID: TestUserId, Project: TestProject1, Language: TestLanguageGo,