diff --git a/lib/auth/bot_test.go b/lib/auth/bot_test.go index 5ec0af8421dc1..14e9fd8c931fb 100644 --- a/lib/auth/bot_test.go +++ b/lib/auth/bot_test.go @@ -599,7 +599,7 @@ func TestRegisterBot_RemoteAddr(t *testing.T) { pkey, err := x509.ParsePKCS1PrivateKey(block.Bytes) require.NoError(t, err) - certs, err := a.RegisterUsingAzureMethod(context.Background(), func(challenge string) (*proto.RegisterUsingAzureMethodRequest, error) { + certs, err := a.RegisterUsingAzureMethodWithOpts(context.Background(), func(challenge string) (*proto.RegisterUsingAzureMethodRequest, error) { ad := attestedData{ Nonce: challenge, SubscriptionID: subID,