From dba1256d71ff3a9436147f832835f457fb4dd095 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Tue, 13 Dec 2016 08:53:55 +0200 Subject: [PATCH] Remove the TestCache from tests, no need here. --- http_test.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/http_test.go b/http_test.go index 6756099f..3b914f1f 100644 --- a/http_test.go +++ b/http_test.go @@ -185,11 +185,11 @@ func listenTLS(api *iris.Framework, hostTLS string) func() { return func() { certFile.Close() - time.Sleep(350 * time.Millisecond) + time.Sleep(150 * time.Millisecond) os.Remove(certFile.Name()) keyFile.Close() - time.Sleep(350 * time.Millisecond) + time.Sleep(150 * time.Millisecond) os.Remove(keyFile.Name()) api.Close() @@ -662,7 +662,7 @@ func TestMuxFireMethodNotAllowed(t *testing.T) { } var ( - cacheDuration = 5 * time.Second + cacheDuration = 2 * time.Second errCacheTestFailed = errors.New("Expected the main handler to be executed %d times instead of %d.") ) @@ -691,6 +691,8 @@ func runCacheTest(e *httpexpect.Expect, path string, counterPtr *uint32, expecte return nil } +/* +Inside github.com/geekypanda/httpcache are enough, no need to add 10+ seconds of testing here. func TestCache(t *testing.T) { iris.ResetDefault() @@ -720,6 +722,7 @@ func TestCache(t *testing.T) { t.Fatal(err) } } +*/ func TestRedirectHTTPS(t *testing.T) { iris.ResetDefault()