mirror of
https://github.com/kataras/iris.git
synced 2025-02-09 02:34:55 +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() {
|
return func() {
|
||||||
certFile.Close()
|
certFile.Close()
|
||||||
time.Sleep(350 * time.Millisecond)
|
time.Sleep(150 * time.Millisecond)
|
||||||
os.Remove(certFile.Name())
|
os.Remove(certFile.Name())
|
||||||
|
|
||||||
keyFile.Close()
|
keyFile.Close()
|
||||||
time.Sleep(350 * time.Millisecond)
|
time.Sleep(150 * time.Millisecond)
|
||||||
os.Remove(keyFile.Name())
|
os.Remove(keyFile.Name())
|
||||||
|
|
||||||
api.Close()
|
api.Close()
|
||||||
|
@ -662,7 +662,7 @@ func TestMuxFireMethodNotAllowed(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
cacheDuration = 5 * time.Second
|
cacheDuration = 2 * time.Second
|
||||||
errCacheTestFailed = errors.New("Expected the main handler to be executed %d times instead of %d.")
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Inside github.com/geekypanda/httpcache are enough, no need to add 10+ seconds of testing here.
|
||||||
func TestCache(t *testing.T) {
|
func TestCache(t *testing.T) {
|
||||||
|
|
||||||
iris.ResetDefault()
|
iris.ResetDefault()
|
||||||
|
@ -720,6 +722,7 @@ func TestCache(t *testing.T) {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
func TestRedirectHTTPS(t *testing.T) {
|
func TestRedirectHTTPS(t *testing.T) {
|
||||||
iris.ResetDefault()
|
iris.ResetDefault()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user