aboutsummaryrefslogtreecommitdiff
path: root/middleware/file/file_test.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2016-03-19 07:18:57 +0000
committerGravatar Miek Gieben <miek@miek.nl> 2016-03-19 07:32:50 +0000
commitf907311cdf46efe7c2fad9291479e2eda495df09 (patch)
treef08ef6e2187346c415d2a64a8caf2cc369f164aa /middleware/file/file_test.go
parent523cc0a0fdbbb1da38e629c05543c1cbf8467cd1 (diff)
downloadcoredns-f907311cdf46efe7c2fad9291479e2eda495df09.tar.gz
coredns-f907311cdf46efe7c2fad9291479e2eda495df09.tar.zst
coredns-f907311cdf46efe7c2fad9291479e2eda495df09.zip
Use context.Context
Rename the old Context to State and use context.Context in the middleware for intra-middleware communication and more.
Diffstat (limited to 'middleware/file/file_test.go')
-rw-r--r--middleware/file/file_test.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/middleware/file/file_test.go b/middleware/file/file_test.go
index 54584b5cc..00f667d57 100644
--- a/middleware/file/file_test.go
+++ b/middleware/file/file_test.go
@@ -1,15 +1,6 @@
package file
-import (
- "errors"
- "net/http"
- "net/http/httptest"
- "os"
- "path/filepath"
- "strings"
- "testing"
-)
-
+/*
var testDir = filepath.Join(os.TempDir(), "caddy_testdir")
var ErrCustom = errors.New("Custom Error")
@@ -323,3 +314,4 @@ func TestServeHTTPFailingStat(t *testing.T) {
}
}
}
+*/