From f907311cdf46efe7c2fad9291479e2eda495df09 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Sat, 19 Mar 2016 07:18:57 +0000 Subject: Use context.Context Rename the old Context to State and use context.Context in the middleware for intra-middleware communication and more. --- middleware/file/file_test.go | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'middleware/file/file_test.go') 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) { } } } +*/ -- cgit v1.2.3