Browse code

Update TestHttpsInfoRogueCert for Go 1.7

The error message changed from

remote error: bad certificate

To

remote error: tls: bad certificate

In Go 1.7, so just checking for "bad certificate"
to make this test work on both Go 1.6 and 1.7

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2016/06/04 21:17:24
Showing 1 changed files
... ...
@@ -1474,7 +1474,7 @@ func (s *DockerDaemonSuite) TestTlsVerify(c *check.C) {
1474 1474
 // by using a rogue client certificate and checks that it fails with the expected error.
1475 1475
 func (s *DockerDaemonSuite) TestHttpsInfoRogueCert(c *check.C) {
1476 1476
 	const (
1477
-		errBadCertificate   = "remote error: bad certificate"
1477
+		errBadCertificate   = "bad certificate"
1478 1478
 		testDaemonHTTPSAddr = "tcp://localhost:4271"
1479 1479
 	)
1480 1480