From 829530ae90e5bbcbfd61b118d5dca89e271f637d Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Thu, 15 Sep 2022 18:24:43 -0700 Subject: [PATCH] Fix linter errors --- acme/api/account_test.go | 5 +++++ acme/challenge_test.go | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/acme/api/account_test.go b/acme/api/account_test.go index a67e1a62..d74b5433 100644 --- a/acme/api/account_test.go +++ b/acme/api/account_test.go @@ -3,6 +3,7 @@ package api import ( "bytes" "context" + "crypto/x509" "encoding/json" "fmt" "io" @@ -49,6 +50,10 @@ func (*fakeProvisioner) IsAttestationFormatEnabled(ctx context.Context, format p return true } +func (*fakeProvisioner) GetAttestationRoots() (*x509.CertPool, bool) { + return nil, false +} + func (*fakeProvisioner) AuthorizeRevoke(ctx context.Context, token string) error { return nil } func (*fakeProvisioner) GetID() string { return "" } func (*fakeProvisioner) GetName() string { return "" } diff --git a/acme/challenge_test.go b/acme/challenge_test.go index 32d78166..856c04e3 100644 --- a/acme/challenge_test.go +++ b/acme/challenge_test.go @@ -45,8 +45,8 @@ type mockClient struct { func (m *mockClient) Get(url string) (*http.Response, error) { return m.get(url) } func (m *mockClient) LookupTxt(name string) ([]string, error) { return m.lookupTxt(name) } -func (m *mockClient) TLSDial(network, addr string, config *tls.Config) (*tls.Conn, error) { - return m.tlsDial(network, addr, config) +func (m *mockClient) TLSDial(network, addr string, tlsConfig *tls.Config) (*tls.Conn, error) { + return m.tlsDial(network, addr, tlsConfig) } func Test_storeError(t *testing.T) {