mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
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.
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
func benchmarkLookupBalanceRewriteCache(b *testing.B) {
|
||||
t := new(testing.T)
|
||||
name, rm, err := test.TempFile(t, ".", exampleOrg)
|
||||
name, rm, err := test.TempFile(".", exampleOrg)
|
||||
if err != nil {
|
||||
t.Fatalf("failed to created zone: %s", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user