1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-01 23:28:36 +00:00

Migrations: Use Process Manager to create own Context (#13793)

This commit is contained in:
6543
2020-12-02 22:11:11 +01:00
committed by GitHub
parent d551152582
commit 8396b792f8
7 changed files with 34 additions and 15 deletions

View File

@@ -5,6 +5,7 @@
package mirror
import (
"context"
"path/filepath"
"testing"
@@ -47,7 +48,7 @@ func TestRelease_MirrorDelete(t *testing.T) {
})
assert.NoError(t, err)
mirror, err := repository.MigrateRepositoryGitData(user, user, mirrorRepo, opts)
mirror, err := repository.MigrateRepositoryGitData(context.Background(), user, mirrorRepo, opts)
assert.NoError(t, err)
gitRepo, err := git.OpenRepository(repoPath)