Skip to content

Commit

Permalink
skip TestAttestAgent under race detector
Browse files Browse the repository at this point in the history
Signed-off-by: Zack Train <ztrain@uber.com>
  • Loading branch information
zmt committed Mar 11, 2022
1 parent 200032c commit c66b5be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/server/api/agent/v1/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
"github.com/spiffe/spire/test/fakes/fakeservernodeattestor"
"github.com/spiffe/spire/test/spiretest"
"github.com/spiffe/spire/test/testkey"
"github.com/spiffe/spire/test/util"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"google.golang.org/grpc"
Expand Down Expand Up @@ -2139,6 +2140,10 @@ func TestCreateJoinTokenWithAgentId(t *testing.T) {
}

func TestAttestAgent(t *testing.T) {
util.SkipFlakyTestUnderRaceDetectorWithFiledIssue(
t,
"https://github.com/spiffe/spire/issues/2841",
)
testCsr, err := x509.CreateCertificateRequest(rand.Reader, &x509.CertificateRequest{}, testkey.MustEC256())
require.NoError(t, err)

Expand Down

0 comments on commit c66b5be

Please sign in to comment.