Index: tests/standalone/io/secure_server_client_certificate_test.dart |
diff --git a/tests/standalone/io/secure_server_client_certificate_test.dart b/tests/standalone/io/secure_server_client_certificate_test.dart |
index 689103746357b2e037c59c0b23e09840408000a7..4c16ab04c942cf0a1e69cde1dbce26513671e52e 100644 |
--- a/tests/standalone/io/secure_server_client_certificate_test.dart |
+++ b/tests/standalone/io/secure_server_client_certificate_test.dart |
@@ -66,15 +66,15 @@ Future testClientCertificate( |
X509Certificate clientCertificate = serverEnd.peerCertificate; |
if (sendCert) { |
Expect.isNotNull(clientCertificate); |
- Expect.equals("/CN=user1", clientCertificate.subject); |
- Expect.equals("/CN=clientauthority", clientCertificate.issuer); |
+ Expect.isTrue(clientCertificate.subject.contains("user1")); |
+ Expect.isTrue(clientCertificate.issuer.contains("clientauthority")); |
} else { |
Expect.isNull(clientCertificate); |
} |
X509Certificate serverCertificate = clientEnd.peerCertificate; |
Expect.isNotNull(serverCertificate); |
- Expect.equals("/CN=localhost", serverCertificate.subject); |
- Expect.equals("/CN=intermediateauthority", serverCertificate.issuer); |
+ Expect.isTrue(serverCertificate.subject.contains("localhost")); |
+ Expect.isTrue(serverCertificate.issuer.contains("intermediateauthority")); |
clientEnd.close(); |
serverEnd.close(); |
} |