forked from TrueCloudLab/lego
Fix tests with new error
This commit is contained in:
parent
f08c15df80
commit
c2467d031f
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ func TestHTTPInvalidServerState(t *testing.T) {
|
||||||
if err := solver.Solve(clientChallenge, "127.0.0.1"); err == nil {
|
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.")
|
t.Error("UNEXPECTED: Expected Solve to return an error but the error was nil.")
|
||||||
} else {
|
} else {
|
||||||
expectedError := "The server could not validate our request."
|
expectedError := "acme: Error 0 - - \nError Detail:\n"
|
||||||
if err.Error() != expectedError {
|
if err.Error() != expectedError {
|
||||||
t.Errorf("Expected error |%s| but instead got |%s|", expectedError, err.Error())
|
t.Errorf("Expected error |%s| but instead got |%s|", expectedError, err.Error())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue