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 @@ -251,8 +251,8 @@ func TestPrepareWikiFileName(t *testing.T) {
251251 unittest .PrepareTestEnv (t )
252252 repo := unittest .AssertExistsAndLoadBean (t , & repo_model.Repository {ID : 1 })
253253 gitRepo , err := git .OpenRepository (git .DefaultContext , repo .WikiPath ())
254- defer gitRepo .Close ()
255254 assert .NoError (t , err )
255+ defer gitRepo .Close ()
256256
257257 tests := []struct {
258258 name string
@@ -303,8 +303,8 @@ func TestPrepareWikiFileName_FirstPage(t *testing.T) {
303303 assert .NoError (t , err )
304304
305305 gitRepo , err := git .OpenRepository (git .DefaultContext , tmpDir )
306- defer gitRepo .Close ()
307306 assert .NoError (t , err )
307+ defer gitRepo .Close ()
308308
309309 existence , newWikiPath , err := prepareGitPath (gitRepo , "Home" )
310310 assert .False (t , existence )
You can’t perform that action at this time.
0 commit comments