diff --git a/packages/cli-repl/src/tls-certificate-selector.spec.ts b/packages/cli-repl/src/tls-certificate-selector.spec.ts index f07a209430..fdc13a8f34 100644 --- a/packages/cli-repl/src/tls-certificate-selector.spec.ts +++ b/packages/cli-repl/src/tls-certificate-selector.spec.ts @@ -74,7 +74,7 @@ describe('arg-mapper.applyTlsCertificateSelector', function () { return this.skip(); } expect(() => getTlsCertificateSelector('subject=Foo Bar')).to.throw( - /Could not find a matching certificate/ + /Could not find a matching certificate|The specified item could not be found in the keychain/ ); }); }); diff --git a/packages/e2e-tests/test/e2e-tls.spec.ts b/packages/e2e-tests/test/e2e-tls.spec.ts index 8aac7c466d..2f67523b8f 100644 --- a/packages/e2e-tests/test/e2e-tls.spec.ts +++ b/packages/e2e-tests/test/e2e-tls.spec.ts @@ -601,7 +601,9 @@ describe('e2e TLS', function () { 'Could not resolve certificate specification' ); } else if (process.platform === 'darwin') { - shell.assertContainsOutput('Could not find a matching certificate'); + shell.assertContainsOutput( + /Could not find a matching certificate|The specified item could not be found in the keychain/ + ); } else { shell.assertContainsOutput( 'tlsCertificateSelector is not supported on this platform'