Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Jun 27, 2024
1 parent 43ef9bf commit 6ca260c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions internal/experiment/dnscheck/richerinput_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@ func TestTarget(t *testing.T) {
}
})

t.Run("Options", func(t *testing.T) {
expect := []string{
"DefaultAddrs=8.8.8.8 8.8.4.4",
"Domain=example.com",
"HTTPHost=dns.google",
"TLSServerName=dns.google.com",
"TLSVersion=TLSv1.3",
}
if diff := cmp.Diff(expect, target.Options()); diff != "" {
t.Fatal(diff)
}
})

t.Run("String", func(t *testing.T) {
if target.String() != "https://dns.google/dns-query" {
t.Fatal("invalid String")
Expand Down

0 comments on commit 6ca260c

Please sign in to comment.