mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
Extend presubmit to covert test and request (#1846)
Fix the casing *and* fix use of context as we were still referencing the non-std lib context - no wondering how this could have worked...
This commit is contained in:
@@ -16,7 +16,7 @@ func TestLookupProxy(t *testing.T) {
|
||||
t.Parallel()
|
||||
name, rm, err := test.TempFile(".", exampleOrg)
|
||||
if err != nil {
|
||||
t.Fatalf("failed to create zone: %s", err)
|
||||
t.Fatalf("Failed to create zone: %s", err)
|
||||
}
|
||||
defer rm()
|
||||
|
||||
@@ -55,7 +55,7 @@ func TestLookupDnsWithForcedTcp(t *testing.T) {
|
||||
t.Parallel()
|
||||
name, rm, err := test.TempFile(".", exampleOrg)
|
||||
if err != nil {
|
||||
t.Fatalf("failed to create zone: %s", err)
|
||||
t.Fatalf("Failed to create zone: %s", err)
|
||||
}
|
||||
defer rm()
|
||||
|
||||
@@ -94,7 +94,7 @@ func BenchmarkProxyLookup(b *testing.B) {
|
||||
t := new(testing.T)
|
||||
name, rm, err := test.TempFile(".", exampleOrg)
|
||||
if err != nil {
|
||||
t.Fatalf("failed to created zone: %s", err)
|
||||
t.Fatalf("Failed to created zone: %s", err)
|
||||
}
|
||||
defer rm()
|
||||
|
||||
@@ -105,12 +105,12 @@ func BenchmarkProxyLookup(b *testing.B) {
|
||||
|
||||
i, err := CoreDNSServer(corefile)
|
||||
if err != nil {
|
||||
t.Fatalf("could not get CoreDNS serving instance: %s", err)
|
||||
t.Fatalf("Could not get CoreDNS serving instance: %s", err)
|
||||
}
|
||||
|
||||
udp, _ := CoreDNSServerPorts(i, 0)
|
||||
if udp == "" {
|
||||
t.Fatalf("could not get udp listening port")
|
||||
t.Fatalf("Could not get udp listening port")
|
||||
}
|
||||
defer i.Stop()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user