summaryrefslogtreecommitdiffstats
path: root/integrations
diff options
context:
space:
mode:
Diffstat (limited to 'integrations')
-rw-r--r--integrations/branches_test.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/integrations/branches_test.go b/integrations/branches_test.go
index ed6a73fdb4..2b9fc8dda5 100644
--- a/integrations/branches_test.go
+++ b/integrations/branches_test.go
@@ -32,14 +32,14 @@ func TestDeleteBranch(t *testing.T) {
}
func TestUndoDeleteBranch(t *testing.T) {
- defer prepareTestEnv(t)()
-
- deleteBranch(t)
- htmlDoc, name := branchAction(t, ".undo-button")
- assert.Contains(t,
- htmlDoc.doc.Find(".ui.positive.message").Text(),
- i18n.Tr("en", "repo.branch.restore_success", name),
- )
+ onGiteaRun(t, func(t *testing.T, u *url.URL) {
+ deleteBranch(t)
+ htmlDoc, name := branchAction(t, ".undo-button")
+ assert.Contains(t,
+ htmlDoc.doc.Find(".ui.positive.message").Text(),
+ i18n.Tr("en", "repo.branch.restore_success", name),
+ )
+ })
}
func deleteBranch(t *testing.T) {