Commit 72f5a92d authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

Random fixes (#605)

parent 830fdfd2
...@@ -51,7 +51,7 @@ proxy FROM TO... { ...@@ -51,7 +51,7 @@ proxy FROM TO... {
* `protocol` specifies what protocol to use to speak to an upstream, `dns` (the default) is plain * `protocol` specifies what protocol to use to speak to an upstream, `dns` (the default) is plain
old DNS, and `https_google` uses `https://dns.google.com` and speaks a JSON DNS dialect. Note when old DNS, and `https_google` uses `https://dns.google.com` and speaks a JSON DNS dialect. Note when
using this **TO** will be ignored. The `grpc` option will talk to a server that has implemented using this **TO** will be ignored. The `grpc` option will talk to a server that has implemented
the [DnsService](https://github.com/coredns/coredns/middleware/proxy/pb/dns.proto). the [DnsService](https://github.com/coredns/coredns/pb/dns.proto).
An out-of-tree middleware that implements the server side of this can be found at An out-of-tree middleware that implements the server side of this can be found at
[here](https://github.com/infobloxopen/coredns-grpc). [here](https://github.com/infobloxopen/coredns-grpc).
......
...@@ -2,6 +2,7 @@ package proxy ...@@ -2,6 +2,7 @@ package proxy
import ( import (
"io/ioutil" "io/ioutil"
"log"
"os" "os"
"path/filepath" "path/filepath"
"strings" "strings"
...@@ -14,6 +15,8 @@ import ( ...@@ -14,6 +15,8 @@ import (
) )
func TestHealthCheck(t *testing.T) { func TestHealthCheck(t *testing.T) {
log.SetOutput(ioutil.Discard)
upstream := &staticUpstream{ upstream := &staticUpstream{
from: ".", from: ".",
Hosts: testPool(), Hosts: testPool(),
......
...@@ -58,5 +58,4 @@ func TestGrpc(t *testing.T) { ...@@ -58,5 +58,4 @@ func TestGrpc(t *testing.T) {
if len(d.Extra) != 2 { if len(d.Extra) != 2 {
t.Errorf("Expected 2 RRs in additional section, but got %s", len(d.Extra)) t.Errorf("Expected 2 RRs in additional section, but got %s", len(d.Extra))
} }
t.Logf("Message %v\n", d)
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment