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) {
251
251
unittest .PrepareTestEnv (t )
252
252
repo := unittest .AssertExistsAndLoadBean (t , & repo_model.Repository {ID : 1 })
253
253
gitRepo , err := git .OpenRepository (git .DefaultContext , repo .WikiPath ())
254
- defer gitRepo .Close ()
255
254
assert .NoError (t , err )
255
+ defer gitRepo .Close ()
256
256
257
257
tests := []struct {
258
258
name string
@@ -303,8 +303,8 @@ func TestPrepareWikiFileName_FirstPage(t *testing.T) {
303
303
assert .NoError (t , err )
304
304
305
305
gitRepo , err := git .OpenRepository (git .DefaultContext , tmpDir )
306
- defer gitRepo .Close ()
307
306
assert .NoError (t , err )
307
+ defer gitRepo .Close ()
308
308
309
309
existence , newWikiPath , err := prepareGitPath (gitRepo , "Home" )
310
310
assert .False (t , existence )
You can’t perform that action at this time.
0 commit comments