Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fde9b9c0b8 | ||
|
|
7904647254 | ||
|
|
b0a06aac63 | ||
|
|
0e5a5b468c | ||
|
|
098bbe8878 |
@@ -31,12 +31,10 @@ import (
|
|||||||
// this package: Go's resolver counts the queries under way in one
|
// this package: Go's resolver counts the queries under way in one
|
||||||
// sync.WaitGroup for the whole process, and the process fails when
|
// sync.WaitGroup for the whole process, and the process fails when
|
||||||
// queries from two bubbles, or from a bubble and from outside one, are
|
// queries from two bubbles, or from a bubble and from outside one, are
|
||||||
// under way at once. The one test outside a bubble is parallel, so it
|
// under way at once. TestMain has the resolver make its configuration,
|
||||||
// starts only once every test that is not parallel has ended; no other
|
// which it makes on its first query, outside every bubble, since the
|
||||||
// parallel test of this package queries a resolver. TestMain has the
|
// configuration holds a channel, which the bubble it was made in would
|
||||||
// resolver make its configuration, which it makes on its first query,
|
// keep to itself.
|
||||||
// outside every bubble, since the configuration holds a channel, which
|
|
||||||
// the bubble it was made in would keep to itself.
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// zone and otherZone are the DNSBL zones the tests name.
|
// zone and otherZone are the DNSBL zones the tests name.
|
||||||
@@ -527,9 +525,8 @@ func TestAtMost100000VerdictsKeptTheOneFetchedLongestAgoDroppedFirst(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:paralleltest // one at a time, as the comment at the top of this file says
|
||||||
func TestQueriesGoToTheResolverSWWDNSBLResolverNames(t *testing.T) {
|
func TestQueriesGoToTheResolverSWWDNSBLResolverNames(t *testing.T) {
|
||||||
t.Parallel()
|
|
||||||
|
|
||||||
resolver := &resolverStandIn{answers: map[string]answer{
|
resolver := &resolverStandIn{answers: map[string]answer{
|
||||||
listedName: {addrs: []string{listing}},
|
listedName: {addrs: []string{listing}},
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in new issue
Block a user