Index: tests/standalone/io/secure_socket_bad_certificate_test.dart |
diff --git a/tests/standalone/io/secure_socket_bad_certificate_test.dart b/tests/standalone/io/secure_socket_bad_certificate_test.dart |
index f6bc1fc4d56b53a8ece3d4ec3b7c2edf48380cb4..e3a2616e381904232520883e044f53c03a330802 100644 |
--- a/tests/standalone/io/secure_socket_bad_certificate_test.dart |
+++ b/tests/standalone/io/secure_socket_bad_certificate_test.dart |
@@ -53,8 +53,8 @@ Future testCertificateCallback({String host, bool acceptCertificate}) { |
(e) => e is TypeError || e is SocketIOException); |
secure.onBadCertificate = (X509Certificate certificate) { |
Expect.isTrue(certificate.subject.contains("O=Google Inc")); |
- Expect.isTrue(certificate.startValidity < new Date.now()); |
- Expect.isTrue(certificate.endValidity > new Date.now()); |
+ Expect.isTrue(certificate.startValidity < new DateTime.now()); |
+ Expect.isTrue(certificate.endValidity > new DateTime.now()); |
return acceptCertificate; |
}; |
secure.onData = () { |