Fix unit test

Signed-off-by: joshvanl <me@joshvanl.dev>
This commit is contained in:
joshvanl 2025-05-20 09:53:55 +01:00
parent 4d26258acc
commit a82b5ca676
1 changed files with 4 additions and 2 deletions

View File

@ -92,9 +92,11 @@ func TestGetX509Client(t *testing.T) {
var fetches atomic.Int32
s := spiffe.New(spiffe.Options{
Log: logger.NewLogger("test"),
RequestSVIDFn: func(context.Context, []byte) ([]*cryptoX509.Certificate, error) {
RequestSVIDFn: func(context.Context, []byte) (*spiffe.SVIDResponse, error) {
fetches.Add(1)
return respCert, respErr
return &spiffe.SVIDResponse{
X509Certificates: respCert,
}, respErr
},
})