From 496adadcec4ba00d230e546239ddc10e4ea41dcf Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sat, 4 Jun 2016 14:17:24 +0200 Subject: [PATCH] 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 --- integration-cli/docker_cli_daemon_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-cli/docker_cli_daemon_test.go b/integration-cli/docker_cli_daemon_test.go index 78a4a97d80..9546f3bf80 100644 --- a/integration-cli/docker_cli_daemon_test.go +++ b/integration-cli/docker_cli_daemon_test.go @@ -1474,7 +1474,7 @@ func (s *DockerDaemonSuite) TestTlsVerify(c *check.C) { // by using a rogue client certificate and checks that it fails with the expected error. func (s *DockerDaemonSuite) TestHttpsInfoRogueCert(c *check.C) { const ( - errBadCertificate = "remote error: bad certificate" + errBadCertificate = "bad certificate" testDaemonHTTPSAddr = "tcp://localhost:4271" )