mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
plugin/autopath: Don't panic on empty token (#5169)
* dont panic on empty token Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
@@ -33,6 +33,7 @@ func TestSetupAutoPath(t *testing.T) {
|
||||
// negative
|
||||
{`autopath kubernetes`, true, "", "", nil, "open kubernetes: no such file or directory"},
|
||||
{`autopath`, true, "", "", nil, "no resolv-conf"},
|
||||
{`autopath ""`, true, "", "", nil, "no such file"},
|
||||
}
|
||||
|
||||
for i, test := range tests {
|
||||
|
||||
Reference in New Issue
Block a user