aboutsummaryrefslogtreecommitdiff
path: root/plugin/autopath/setup_test.go
diff options
context:
space:
mode:
authorGravatar Chris O'Haver <cohaver@infoblox.com> 2022-02-10 09:00:27 -0500
committerGravatar GitHub <noreply@github.com> 2022-02-10 09:00:27 -0500
commitfe9ba42590199b5d46e6acda2584195338f5497d (patch)
tree98f35b0fa27238c410db320bae61bd89f3db792f /plugin/autopath/setup_test.go
parentc5eb7d04601ebbd9400274cb77eaabf431fd7d49 (diff)
downloadcoredns-fe9ba42590199b5d46e6acda2584195338f5497d.tar.gz
coredns-fe9ba42590199b5d46e6acda2584195338f5497d.tar.zst
coredns-fe9ba42590199b5d46e6acda2584195338f5497d.zip
plugin/autopath: Don't panic on empty token (#5169)
* dont panic on empty token Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
Diffstat (limited to 'plugin/autopath/setup_test.go')
-rw-r--r--plugin/autopath/setup_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/autopath/setup_test.go b/plugin/autopath/setup_test.go
index 5847e0de5..4644c7d59 100644
--- a/plugin/autopath/setup_test.go
+++ b/plugin/autopath/setup_test.go
@@ -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 {