We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b139234 commit 882e465Copy full SHA for 882e465
services/wiki/wiki_test.go
@@ -249,8 +249,8 @@ func TestPrepareWikiFileName(t *testing.T) {
249
unittest.PrepareTestEnv(t)
250
repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 1})
251
gitRepo, err := git.OpenRepository(git.DefaultContext, repo.WikiPath())
252
- defer gitRepo.Close()
253
assert.NoError(t, err)
+ defer gitRepo.Close()
254
255
tests := []struct {
256
name string
@@ -301,8 +301,8 @@ func TestPrepareWikiFileName_FirstPage(t *testing.T) {
301
302
303
gitRepo, err := git.OpenRepository(git.DefaultContext, tmpDir)
304
305
306
307
existence, newWikiPath, err := prepareGitPath(gitRepo, "Home")
308
assert.False(t, existence)
0 commit comments