diff options
author | 2016-04-12 22:34:44 +0100 | |
---|---|---|
committer | 2016-04-12 22:34:44 +0100 | |
commit | 25cf16af0e816a2b321cf9ed46e91c1ef067927e (patch) | |
tree | a786606d66313a136e03275db59e7efd1e3ef285 /core/assets/path_test.go | |
parent | 842953f17936ac02a7d9c82cb31ef70b5bcc1dc5 (diff) | |
download | coredns-25cf16af0e816a2b321cf9ed46e91c1ef067927e.tar.gz coredns-25cf16af0e816a2b321cf9ed46e91c1ef067927e.tar.zst coredns-25cf16af0e816a2b321cf9ed46e91c1ef067927e.zip |
Use dns.IsSubDomain (#112)
For the match function use the proper thing from go dns. Fix all
callers and tests to use this.
Fixes: #107
Diffstat (limited to 'core/assets/path_test.go')
-rw-r--r-- | core/assets/path_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/assets/path_test.go b/core/assets/path_test.go index 374f813af..50e8841d9 100644 --- a/core/assets/path_test.go +++ b/core/assets/path_test.go @@ -6,7 +6,7 @@ import ( ) func TestPath(t *testing.T) { - if actual := Path(); !strings.HasSuffix(actual, ".caddy") { + if actual := Path(); !strings.HasSuffix(actual, ".coredns") { t.Errorf("Expected path to be a .caddy folder, got: %v", actual) } } |