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> Upstream-commit: 496adadcec4ba00d230e546239ddc10e4ea41dcf Component: engine