mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
Fix travis test
This commit is contained in:
parent
606e824036
commit
bb38bd7ccc
|
@ -80,6 +80,7 @@ func TestCacheCanRender(t *testing.T) {
|
||||||
expectedBody := iris.SerializeToString("text/markdown", testMarkdownContents)
|
expectedBody := iris.SerializeToString("text/markdown", testMarkdownContents)
|
||||||
|
|
||||||
e.GET("/").Expect().Status(iris.StatusOK).Body().Equal(expectedBody)
|
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
|
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*
|
// 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*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user