From 8ad17ceb23ffed5c106aca0d650c4dc12d34574d Mon Sep 17 00:00:00 2001 From: Noam Gal Date: Tue, 12 Sep 2023 11:23:40 +0300 Subject: [PATCH] fixed tests Signed-off-by: Noam Gal --- pkg/git/provider_ado_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/git/provider_ado_test.go b/pkg/git/provider_ado_test.go index 445e754a..708b96ef 100644 --- a/pkg/git/provider_ado_test.go +++ b/pkg/git/provider_ado_test.go @@ -32,7 +32,7 @@ func Test_adoGit_CreateRepository(t *testing.T) { { name: "Failure creating repo", mockClient: func(client *adoMock.MockAdoClient, url *adoMock.MockAdoUrl) { - client.EXPECT().CreateRepository(context.TODO(), gomock.AssignableToTypeOf(ado.CreateRepositoryArgs{})). + client.EXPECT().CreateRepository(context.Background(), gomock.AssignableToTypeOf(ado.CreateRepositoryArgs{})). Times(1). Return(nil, errors.New("ah an error")) url.EXPECT().GetProjectName(). @@ -51,7 +51,7 @@ func Test_adoGit_CreateRepository(t *testing.T) { url.EXPECT().GetProjectName(). Times(1). Return("PROJECT") - client.EXPECT().CreateRepository(context.TODO(), gomock.AssignableToTypeOf(ado.CreateRepositoryArgs{})). + client.EXPECT().CreateRepository(context.Background(), gomock.AssignableToTypeOf(ado.CreateRepositoryArgs{})). Times(1). Return(&ado.GitRepository{ Links: nil,