mirror of
https://github.com/coredns/coredns.git
synced 2025-12-08 19:35:10 -05:00
Issue-6671: Fixed the order of plugins. (#6729)
* Issue-6671: Fixed the order of plugins. Signed-off-by: osho-20 <yashjainiiita@gmail.com> * Issue-6671: corrected test cases. Signed-off-by: osho-20 <yashjainiiita@gmail.com> * Issue-6671: fixed CoreDNSServerPorts Signed-off-by: osho-20 <yashjainiiita@gmail.com> * Issue-6671: removed unnecessary change. Signed-off-by: osho-20 <yashjainiiita@gmail.com> * Issue-6671: added extra check for error. Signed-off-by: osho-20 <yashjainiiita@gmail.com> --------- Signed-off-by: osho-20 <yashjainiiita@gmail.com>
This commit is contained in:
@@ -10,7 +10,7 @@ func TestHandler(t *testing.T) {
|
||||
if _, err := NewServer("127.0.0.1:53", []*Config{c}); err != nil {
|
||||
t.Errorf("Expected no error for NewServer, got %s", err)
|
||||
}
|
||||
if h := c.Handler("testplugin"); h != tp {
|
||||
if h := c.Handler("local"); h != tp {
|
||||
t.Errorf("Expected testPlugin from Handler, got %T", h)
|
||||
}
|
||||
if h := c.Handler("nothing"); h != nil {
|
||||
|
||||
Reference in New Issue
Block a user