Skip to content

Commit 681e497

Browse files
test(signserver): fix lint issues in signserver tests
Signed-off-by: Matías Insaurralde <matias@chainloop.dev>
1 parent 382b91c commit 681e497

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/attestation/signer/signserver/signserver_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ func TestSignMessage_Non200Status(t *testing.T) {
237237
}
238238

239239
func TestSignMessage_NetworkError(t *testing.T) {
240-
srv, caPath := tlsServerWithCA(t, http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {}))
240+
srv, caPath := tlsServerWithCA(t, http.HandlerFunc(func(_ http.ResponseWriter, _ *http.Request) {}))
241241
host := strings.TrimPrefix(srv.URL, "https://")
242242
srv.Close() // closed before the call
243243

@@ -293,7 +293,7 @@ func TestPrivateKeyFromPem(t *testing.T) {
293293
}{
294294
{
295295
name: "unencrypted PKCS8 key with empty password",
296-
pemBytes: func(t *testing.T) []byte { return generatePrivateKeyPEM(t) },
296+
pemBytes: generatePrivateKeyPEM,
297297
password: "",
298298
},
299299
{
@@ -315,7 +315,7 @@ func TestPrivateKeyFromPem(t *testing.T) {
315315
},
316316
{
317317
name: "certificate block only — no key",
318-
pemBytes: func(t *testing.T) []byte { return generateSelfSignedCertPEM(t) },
318+
pemBytes: generateSelfSignedCertPEM,
319319
password: "",
320320
wantErr: true,
321321
},

0 commit comments

Comments
 (0)