diff options
Diffstat (limited to 'tests/integration')
-rw-r--r-- | tests/integration/api_user_heatmap_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration/api_user_heatmap_test.go b/tests/integration/api_user_heatmap_test.go index a49bdd0c25..a23536735b 100644 --- a/tests/integration/api_user_heatmap_test.go +++ b/tests/integration/api_user_heatmap_test.go @@ -24,8 +24,8 @@ func TestUserHeatmap(t *testing.T) { token := getUserToken(t, adminUsername, auth_model.AccessTokenScopeReadUser) fakeNow := time.Date(2011, 10, 20, 0, 0, 0, 0, time.Local) - timeutil.Set(fakeNow) - defer timeutil.Unset() + timeutil.MockSet(fakeNow) + defer timeutil.MockUnset() req := NewRequest(t, "GET", fmt.Sprintf("/api/v1/users/%s/heatmap", normalUsername)). AddTokenAuth(token) |