Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Feb 8, 2024
1 parent 05fb9dd commit 04cc42c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/webconnectivityalgo/dnsoverudp_test.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
package webconnectivityalgo

import "testing"
import (
"net"
"testing"
)

func TestRandomDNSOverUDPResolverEndpointIPv4(t *testing.T) {
results := make(map[string]int64)
const maxruns = 1024
for idx := 0; idx < maxruns; idx++ {
endpoint := RandomDNSOverUDPResolverEndpointIPv4()
results[endpoint]++
if _, _, err := net.SplitHostPort(endpoint); err != nil {
t.Fatal(err)
}
}
t.Log(results)
if len(results) < 3 {
Expand Down

0 comments on commit 04cc42c

Please sign in to comment.