From bb38bd7ccc2345e11864f18ab3430e94460ffbea Mon Sep 17 00:00:00 2001 From: Gerasimos Maropoulos Date: Thu, 27 Oct 2016 03:31:11 +0300 Subject: [PATCH] Fix travis test --- cache_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cache_test.go b/cache_test.go index 9c50865d..908857e0 100644 --- a/cache_test.go +++ b/cache_test.go @@ -80,6 +80,7 @@ func TestCacheCanRender(t *testing.T) { expectedBody := iris.SerializeToString("text/markdown", testMarkdownContents) e.GET("/").Expect().Status(iris.StatusOK).Body().Equal(expectedBody) + time.Sleep(5 * time.Second) // let's sleep for a while in order to be saved in cache(running in goroutine) e.GET("/").Expect().Status(iris.StatusOK).Body().Equal(expectedBody) // the 1 minute didnt' passed so it should work // travis... and time sleep not a good idea for testing, we will see what we can do other day, the cache is tested on examples too*