Remove server addr from the context (#2722)
* more Signed-off-by: Miek Gieben <miek@miek.nl> * Remove server addr from the context This was added twice, just leave the server which also holds the address. Conflicts with #2719 but should be easy to fix. Signed-off-by: Miek Gieben <miek@miek.nl> * doesn't need server context Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
parent
45624a0c0a
commit
9a8c301a42
6 changed files with 22 additions and 42 deletions
|
@ -4,7 +4,6 @@ import (
|
|||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/coredns/coredns/plugin"
|
||||
"github.com/coredns/coredns/plugin/pkg/dnstest"
|
||||
"github.com/coredns/coredns/plugin/pkg/rcode"
|
||||
"github.com/coredns/coredns/plugin/test"
|
||||
|
@ -69,7 +68,7 @@ func TestTrace(t *testing.T) {
|
|||
every: 1,
|
||||
tracer: m,
|
||||
}
|
||||
ctx := context.WithValue(context.TODO(), plugin.ServerCtx{}, server)
|
||||
ctx := context.TODO()
|
||||
if _, err := tr.ServeDNS(ctx, w, tc.question); err != nil {
|
||||
t.Fatalf("Error during tr.ServeDNS(ctx, w, %v): %v", tc.question, err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue