diff options
author | 2016-10-02 15:58:01 +0100 | |
---|---|---|
committer | 2016-10-02 15:58:01 +0100 | |
commit | 4096c4906d5835292b9968d5261b91a1db9d89b6 (patch) | |
tree | b17d7048efc43fdb507410520db3a6951de7f0cb /middleware/dnssec/cache_test.go | |
parent | e54c232c8c97fb163647c697e921e6f69846e304 (diff) | |
download | coredns-4096c4906d5835292b9968d5261b91a1db9d89b6.tar.gz coredns-4096c4906d5835292b9968d5261b91a1db9d89b6.tar.zst coredns-4096c4906d5835292b9968d5261b91a1db9d89b6.zip |
Pr 311 2 (#312)
* Add a setup test for middleware/file
This fix adds a setup test for middleware/file so that there is
a basic coverage for the Corefile processing of middleware/file.
This fix is related to 308 (Will look into it).
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* middleware/file: use helper function for test
Fixup setup_test.go and use the test.TempFile function to make things
somewhat shorter.
Use clean up the use of testing.T in TempFile - it is not used.
Diffstat (limited to 'middleware/dnssec/cache_test.go')
-rw-r--r-- | middleware/dnssec/cache_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/middleware/dnssec/cache_test.go b/middleware/dnssec/cache_test.go index 0f069b6a8..6624f65ec 100644 --- a/middleware/dnssec/cache_test.go +++ b/middleware/dnssec/cache_test.go @@ -9,8 +9,8 @@ import ( ) func TestCacheSet(t *testing.T) { - fPriv, rmPriv, _ := test.TempFile(t, ".", privKey) - fPub, rmPub, _ := test.TempFile(t, ".", pubKey) + fPriv, rmPriv, _ := test.TempFile(".", privKey) + fPub, rmPub, _ := test.TempFile(".", pubKey) defer rmPriv() defer rmPub() |