Skip to content

Commit 9786720

Browse files
committed
Fix test
1 parent 734b4a1 commit 9786720

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/mirror_push_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ func TestRepoSettingPushMirror(t *testing.T) {
130130
repoPrefix := "/user2/repo2"
131131
repo2 := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 2})
132132

133-
defer test.MockVariableValue(&setting.Migrations.AllowedDomains, "127.0.0.1")()
134-
assert.NoError(t, migrations.Init())
135133
defer func() {
136134
migrations.Init()
137135
}()
136+
defer test.MockVariableValue(&setting.Migrations.AllowedDomains, "127.0.0.1")()
137+
assert.NoError(t, migrations.Init())
138138

139139
// visit repository setting page
140140
req := NewRequest(t, "GET", repoPrefix+"/settings")

0 commit comments

Comments
 (0)