Skip to content

Commit

Permalink
fix failing linter
Browse files Browse the repository at this point in the history
Signed-off-by: nyagamunene <[email protected]>
  • Loading branch information
nyagamunene committed Dec 9, 2024
1 parent 98275e7 commit 85dedd2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 29 deletions.
2 changes: 1 addition & 1 deletion certs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func TestIssueCert(t *testing.T) {
t.Run(tc.desc, func(t *testing.T) {
repoCall1 := cRepo.On("CreateCert", mock.Anything, mock.Anything).Return(tc.err)

_, err = svc.IssueCert(context.Background(), tc.backendId, tc.ttl, []string{}, certs.SubjectOptions{})
_, err = svc.IssueCert(context.Background(), tc.backendId, tc.ttl, []string{}, certs.SubjectOptions{}, nil)
require.True(t, errors.Contains(err, tc.err), "expected error %v, got %v", tc.err, err)
repoCall1.Unset()
})
Expand Down
42 changes: 14 additions & 28 deletions mocks/service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 85dedd2

Please sign in to comment.