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