Rename TestSingleSingleInflight to TestSingleInflight and some cosmetic changes

This commit is contained in:
Miek Gieben 2015-08-22 08:55:23 +01:00
parent 7ff8d29c8b
commit 076c8ffa9a
1 changed files with 3 additions and 3 deletions

View File

@ -162,7 +162,7 @@ func TestClientEDNS0Local(t *testing.T) {
}
}
func TestSingleSingleInflight(t *testing.T) {
func TestSingleInflight(t *testing.T) {
HandleFunc("miek.nl.", HelloServer)
defer HandleRemove("miek.nl.")
@ -188,7 +188,7 @@ func TestSingleSingleInflight(t *testing.T) {
i := 0
var first time.Duration
// With inflight *all* rtt are identical, and by doing actual lookups
// the changes that this is a coincidence is small.
// the chances that this is a coincidence is small.
Loop:
for {
select {
@ -197,7 +197,7 @@ Loop:
first = rtt
} else {
if first != rtt {
t.Errorf("all rtts should be equal. got %d want %d", rtt, first)
t.Errorf("all rtts should be equal, got %d want %d", rtt, first)
}
}
i++