Skip to content

Commit 752143a

Browse files
committed
Fix unit test
Signed-off-by: joshvanl <[email protected]>
1 parent 9b9d0e0 commit 752143a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/runtime/runtime_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ package runtime
1717
import (
1818
"context"
1919
"crypto/rand"
20-
"crypto/x509"
2120
"encoding/hex"
2221
"encoding/json"
2322
"errors"
@@ -92,6 +91,7 @@ import (
9291
runtimePubsub "github.com/dapr/dapr/pkg/runtime/pubsub"
9392
"github.com/dapr/dapr/pkg/runtime/registry"
9493
daprt "github.com/dapr/dapr/pkg/testing"
94+
"github.com/dapr/kit/crypto/spiffe"
9595
"github.com/dapr/kit/logger"
9696
"github.com/dapr/kit/ptr"
9797
)
@@ -2178,8 +2178,8 @@ func testSecurity(t *testing.T) security.Handler {
21782178
ControlPlaneTrustDomain: "test.example.com",
21792179
ControlPlaneNamespace: "default",
21802180
MTLSEnabled: false,
2181-
OverrideCertRequestFn: func(context.Context, []byte) ([]*x509.Certificate, error) {
2182-
return []*x509.Certificate{nil}, nil
2181+
OverrideCertRequestFn: func(context.Context, []byte) (*spiffe.SVIDResponse, error) {
2182+
return nil, nil
21832183
},
21842184
Healthz: healthz.New(),
21852185
})

0 commit comments

Comments
 (0)