From 076fc4d72cfef9994b72f6d786c18f5f8f7aed01 Mon Sep 17 00:00:00 2001 From: karthic rao Date: Sat, 13 Jun 2015 20:25:23 +0530 Subject: [PATCH] Update Update with missing assertion for the Next middleware being properly set , this makes sure that Ext middleware carries the requests to the further middlewares . --- config/setup/ext_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/setup/ext_test.go b/config/setup/ext_test.go index a6e5e98c..30cd12a7 100644 --- a/config/setup/ext_test.go +++ b/config/setup/ext_test.go @@ -25,7 +25,7 @@ func TestExt(t *testing.T) { if !ok { t.Fatalf("Expected handler to be type Ext, got: %#v", handler) } - + if myHandler.Extensions[0] != ".html" { t.Errorf("Expected .html in the list of Extensions") } @@ -35,5 +35,9 @@ func TestExt(t *testing.T) { if myHandler.Extensions[2] != ".php" { t.Errorf("Expected .php in the list of Extensions") } + if !sameNext(myHandler.Next, emptyNext) { + t.Error("'Next' field of handler was not set properly") + } + }