Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
Signed-off-by: Noam Gal <[email protected]>
  • Loading branch information
ATGardner committed Sep 7, 2023
1 parent 7258ac3 commit 76d589d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/git/provider_ado_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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().
Expand All @@ -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,
Expand Down

0 comments on commit 76d589d

Please sign in to comment.