mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
Remove the TestCache from tests, no need here.
This commit is contained in:
parent
5ba6ccf365
commit
dba1256d71
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user