test: Fix flaky DNS tests that check for valid IP (#968)

This commit is contained in:
TwiN
2025-01-18 20:26:25 -05:00
committed by GitHub
parent 9157b5bf67
commit 69dbe4fa23
2 changed files with 33 additions and 17 deletions

View File

@ -761,7 +761,7 @@ func TestIntegrationEvaluateHealthWithErrorAndHideURL(t *testing.T) {
func TestIntegrationEvaluateHealthForDNS(t *testing.T) {
conditionSuccess := Condition("[DNS_RCODE] == NOERROR")
conditionBody := Condition("[BODY] == 93.184.215.14")
conditionBody := Condition("[BODY] == pat(*.*.*.*)")
endpoint := Endpoint{
Name: "example",
URL: "8.8.8.8",