Skip to content

Commit

Permalink
Update tests with new log line.
Browse files Browse the repository at this point in the history
  • Loading branch information
beautifulentropy committed Nov 25, 2024
1 parent 8a0ecb0 commit 164bacc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions va/va_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func TestPerformValidationWithMismatchedRemoteVAPerspectives(t *testing.T) {
req := createValidationRequest("good-dns01.com", core.ChallengeTypeDNS01)
res, _ := va.PerformValidation(context.Background(), req)
test.AssertNotNil(t, res.Problems, "validation succeeded with mismatched remote VA perspectives")
test.AssertEquals(t, len(mockLog.GetAllMatching("result included mismatched")), 2)
test.AssertEquals(t, len(mockLog.GetAllMatching("Expected perspective")), 2)
}

func TestPerformValidationWithMismatchedRemoteVARIRs(t *testing.T) {
Expand All @@ -371,7 +371,7 @@ func TestPerformValidationWithMismatchedRemoteVARIRs(t *testing.T) {
req := createValidationRequest("good-dns01.com", core.ChallengeTypeDNS01)
res, _ := va.PerformValidation(context.Background(), req)
test.AssertNotNil(t, res.Problems, "validation succeeded with mismatched remote VA perspectives")
test.AssertEquals(t, len(mockLog.GetAllMatching("result included mismatched")), 2)
test.AssertEquals(t, len(mockLog.GetAllMatching("Expected perspective")), 2)
}

func TestValidateMalformedChallenge(t *testing.T) {
Expand Down

0 comments on commit 164bacc

Please sign in to comment.