Fix tests with new error

This commit is contained in:
xenolf 2015-12-11 16:56:22 +01:00
parent f08c15df80
commit c2467d031f

View file

@ -161,7 +161,7 @@ func TestHTTPInvalidServerState(t *testing.T) {
if err := solver.Solve(clientChallenge, "127.0.0.1"); err == nil {
t.Error("UNEXPECTED: Expected Solve to return an error but the error was nil.")
} else {
expectedError := "The server could not validate our request."
expectedError := "acme: Error 0 - - \nError Detail:\n"
if err.Error() != expectedError {
t.Errorf("Expected error |%s| but instead got |%s|", expectedError, err.Error())
}