File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -249,8 +249,8 @@ func TestPrepareWikiFileName(t *testing.T) {
249249 unittest .PrepareTestEnv (t )
250250 repo := unittest .AssertExistsAndLoadBean (t , & repo_model.Repository {ID : 1 })
251251 gitRepo , err := git .OpenRepository (git .DefaultContext , repo .WikiPath ())
252- defer gitRepo .Close ()
253252 assert .NoError (t , err )
253+ defer gitRepo .Close ()
254254
255255 tests := []struct {
256256 name string
@@ -301,8 +301,8 @@ func TestPrepareWikiFileName_FirstPage(t *testing.T) {
301301 assert .NoError (t , err )
302302
303303 gitRepo , err := git .OpenRepository (git .DefaultContext , tmpDir )
304- defer gitRepo .Close ()
305304 assert .NoError (t , err )
305+ defer gitRepo .Close ()
306306
307307 existence , newWikiPath , err := prepareGitPath (gitRepo , "Home" )
308308 assert .False (t , existence )
You can’t perform that action at this time.
0 commit comments