From e231b6e83956635e5e4923c064cab19e6730150a Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sat, 15 Feb 2020 15:39:49 +0100 Subject: bridges: pass the context to Init for when a client build process needs it --- bridge/gitlab/import_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bridge/gitlab/import_test.go') diff --git a/bridge/gitlab/import_test.go b/bridge/gitlab/import_test.go index b70b291e..ea7acc18 100644 --- a/bridge/gitlab/import_test.go +++ b/bridge/gitlab/import_test.go @@ -104,14 +104,15 @@ func TestImport(t *testing.T) { err = auth.Store(repo, token) require.NoError(t, err) + ctx := context.Background() + importer := &gitlabImporter{} - err = importer.Init(backend, core.Configuration{ + err = importer.Init(ctx, backend, core.Configuration{ confKeyProjectID: projectID, confKeyGitlabBaseUrl: defaultBaseURL, }) require.NoError(t, err) - ctx := context.Background() start := time.Now() events, err := importer.ImportAll(ctx, backend, time.Time{}) -- cgit