Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinFrazar committed Dec 11, 2024
1 parent 117608a commit f157f3f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions lib/srv/alpnproxy/local_proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ package alpnproxy
import (
"bytes"
"context"
"crypto/sha256"
"crypto/tls"
"crypto/x509"
"encoding/hex"
"errors"
"io"
"net"
"net/http"
Expand Down Expand Up @@ -143,7 +140,7 @@ func TestHandleAWSAccessSigVerification(t *testing.T) {

require.Error(t, err)
var serr *awshttp.ResponseError
require.True(t, errors.As(err, &serr))
require.ErrorAs(t, err, &serr)
require.Equal(t, tc.wantStatus, serr.HTTPStatusCode())
})
}
Expand Down Expand Up @@ -767,12 +764,6 @@ func TestGetCertsForConn(t *testing.T) {
}
}

func hashPayload(payload []byte) string {
hasher := sha256.New()
io.Copy(hasher, bytes.NewReader(payload))
return hex.EncodeToString(hasher.Sum(nil))
}

type addUserAgentSignedHeaderMiddleware struct {
}

Expand Down

0 comments on commit f157f3f

Please sign in to comment.