summaryrefslogtreecommitdiffstats
path: root/integrations/timetracking_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/timetracking_test.go')
-rw-r--r--integrations/timetracking_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/integrations/timetracking_test.go b/integrations/timetracking_test.go
index 890f12b300..cd3002e1ac 100644
--- a/integrations/timetracking_test.go
+++ b/integrations/timetracking_test.go
@@ -16,20 +16,20 @@ import (
)
func TestViewTimetrackingControls(t *testing.T) {
- prepareTestEnv(t)
+ defer prepareTestEnv(t)()
session := loginUser(t, "user2")
testViewTimetrackingControls(t, session, "user2", "repo1", "1", true)
//user2/repo1
}
func TestNotViewTimetrackingControls(t *testing.T) {
- prepareTestEnv(t)
+ defer prepareTestEnv(t)()
session := loginUser(t, "user5")
testViewTimetrackingControls(t, session, "user2", "repo1", "1", false)
//user2/repo1
}
func TestViewTimetrackingControlsDisabled(t *testing.T) {
- prepareTestEnv(t)
+ defer prepareTestEnv(t)()
session := loginUser(t, "user2")
testViewTimetrackingControls(t, session, "user3", "repo3", "1", false)
}