mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-01 10:22:43 +02:00
maybe fix flaky test (#3929)
This commit is contained in:
parent
7b14c90b81
commit
7a405abea1
1 changed files with 5 additions and 2 deletions
|
@ -2,8 +2,10 @@ package handlers_test
|
|||
|
||||
import (
|
||||
"crypto/ecdsa"
|
||||
"crypto/elliptic"
|
||||
"encoding/base64"
|
||||
"encoding/json"
|
||||
"math/rand"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"testing"
|
||||
|
@ -19,9 +21,10 @@ import (
|
|||
func TestJWKSHandler(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
signingKey1, err := cryptutil.NewSigningKey()
|
||||
rnd := rand.New(rand.NewSource(1))
|
||||
signingKey1, err := ecdsa.GenerateKey(elliptic.P256(), rnd)
|
||||
require.NoError(t, err)
|
||||
signingKey2, err := cryptutil.NewSigningKey()
|
||||
signingKey2, err := ecdsa.GenerateKey(elliptic.P256(), rnd)
|
||||
require.NoError(t, err)
|
||||
|
||||
rawSigningKey1, err := cryptutil.EncodePrivateKey(signingKey1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue