Skip to content

Commit

Permalink
update primitive/nsresolver_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
vearne committed Nov 27, 2020
1 parent 97c2717 commit 8208f59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions primitive/nsresolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ func TestDNSResolver(t *testing.T) {

hosts, _ := net.LookupHost("examples.com")
expectedHosts := make([]string, 0)
for _, host:=range hosts{
expectedHosts = append(expectedHosts, host + ":9876")
for _, host := range hosts {
expectedHosts = append(expectedHosts, host+":9876")
}
resolver := NewDNSResolver(srvs)
addrs := resolver.Resolve()

So(Diff(expectedHosts, addrs), ShouldBeFalse)
})
}
}

0 comments on commit 8208f59

Please sign in to comment.