diff options
author | Michael Muré <batolettre@gmail.com> | 2020-02-15 15:50:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-15 15:50:56 +0100 |
commit | 157e10f2e1d49748f62e210cadc088ecae9f3dfc (patch) | |
tree | a0740cc0b8b82fac54e9e863e76f7a7ad85cd672 /bridge/github/export_test.go | |
parent | 02548c0e8f96a5c08efe46bd5f71f97fdd211de3 (diff) | |
parent | e231b6e83956635e5e4923c064cab19e6730150a (diff) | |
download | git-bug-157e10f2e1d49748f62e210cadc088ecae9f3dfc.tar.gz git-bug-157e10f2e1d49748f62e210cadc088ecae9f3dfc.zip |
Merge pull request #328 from MichaelMure/bridge-refactor
bridges: pass the context to Init for when a client build process need it
Diffstat (limited to 'bridge/github/export_test.go')
-rw-r--r-- | bridge/github/export_test.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bridge/github/export_test.go b/bridge/github/export_test.go index a25d56d7..acbd657a 100644 --- a/bridge/github/export_test.go +++ b/bridge/github/export_test.go @@ -185,15 +185,16 @@ func TestPushPull(t *testing.T) { return deleteRepository(projectName, envUser, envToken) }) + ctx := context.Background() + // initialize exporter exporter := &githubExporter{} - err = exporter.Init(backend, core.Configuration{ + err = exporter.Init(ctx, backend, core.Configuration{ confKeyOwner: envUser, confKeyProject: projectName, }) require.NoError(t, err) - ctx := context.Background() start := time.Now() // export all bugs @@ -215,7 +216,7 @@ func TestPushPull(t *testing.T) { require.NoError(t, err) importer := &githubImporter{} - err = importer.Init(backend, core.Configuration{ + err = importer.Init(ctx, backend, core.Configuration{ confKeyOwner: envUser, confKeyProject: projectName, }) |