diff options
author | Michael Muré <batolettre@gmail.com> | 2020-02-15 15:39:49 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-02-15 15:46:36 +0100 |
commit | e231b6e83956635e5e4923c064cab19e6730150a (patch) | |
tree | a0740cc0b8b82fac54e9e863e76f7a7ad85cd672 /bridge/github/import_test.go | |
parent | 02548c0e8f96a5c08efe46bd5f71f97fdd211de3 (diff) | |
download | git-bug-e231b6e83956635e5e4923c064cab19e6730150a.tar.gz |
bridges: pass the context to Init for when a client build process needs it
Diffstat (limited to 'bridge/github/import_test.go')
-rw-r--r-- | bridge/github/import_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bridge/github/import_test.go b/bridge/github/import_test.go index 4f75f368..20b1b71e 100644 --- a/bridge/github/import_test.go +++ b/bridge/github/import_test.go @@ -149,14 +149,15 @@ func Test_Importer(t *testing.T) { err = auth.Store(repo, token) require.NoError(t, err) + ctx := context.Background() + importer := &githubImporter{} - err = importer.Init(backend, core.Configuration{ + err = importer.Init(ctx, backend, core.Configuration{ confKeyOwner: "MichaelMure", confKeyProject: "git-bug-test-github-bridge", }) require.NoError(t, err) - ctx := context.Background() start := time.Now() events, err := importer.ImportAll(ctx, backend, time.Time{}) |