aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author65432020-10-21 00:39:42 +0200
committerGitHub2020-10-20 17:39:42 -0500
commit9f9a53e361f3199e83e62fa8c4b7327204d42eaf (patch)
tree3890a8c193a64b464870f76bfdd391505784f7d5
parente6a82047ee75415befe3f17d88003df138af54ba (diff)
Update heatmap fixtures to restore tests (#13224) (#13226)
`the hotfix day`
-rw-r--r--integrations/api_user_heatmap_test.go2
-rw-r--r--models/fixtures/action.yml2
-rw-r--r--models/user_heatmap_test.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/integrations/api_user_heatmap_test.go b/integrations/api_user_heatmap_test.go
index 159d70e86..105d39e9a 100644
--- a/integrations/api_user_heatmap_test.go
+++ b/integrations/api_user_heatmap_test.go
@@ -26,7 +26,7 @@ func TestUserHeatmap(t *testing.T) {
var heatmap []*models.UserHeatmapData
DecodeJSON(t, resp, &heatmap)
var dummyheatmap []*models.UserHeatmapData
- dummyheatmap = append(dummyheatmap, &models.UserHeatmapData{Timestamp: 1571616000, Contributions: 1})
+ dummyheatmap = append(dummyheatmap, &models.UserHeatmapData{Timestamp: 1603152000, Contributions: 1})
assert.Equal(t, dummyheatmap, heatmap)
}
diff --git a/models/fixtures/action.yml b/models/fixtures/action.yml
index e8a6d531f..eb92aeedb 100644
--- a/models/fixtures/action.yml
+++ b/models/fixtures/action.yml
@@ -5,7 +5,7 @@
act_user_id: 2
repo_id: 2
is_private: true
- created_unix: 1571686356
+ created_unix: 1603228283
-
id: 2
diff --git a/models/user_heatmap_test.go b/models/user_heatmap_test.go
index c2825d9ff..c9d33db29 100644
--- a/models/user_heatmap_test.go
+++ b/models/user_heatmap_test.go
@@ -17,7 +17,7 @@ func TestGetUserHeatmapDataByUser(t *testing.T) {
CountResult int
JSONResult string
}{
- {2, 1, `[{"timestamp":1571616000,"contributions":1}]`},
+ {2, 1, `[{"timestamp":1603152000,"contributions":1}]`},
{3, 0, `[]`},
}
// Prepare