1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-09 13:05:56 +00:00

re-add the mutex on sessions.LifeTime

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-08-12 07:48:45 +03:00
parent 5d7198ca7b
commit 9ed566b076
4 changed files with 28 additions and 9 deletions

View File

@@ -13,7 +13,6 @@ import (
)
func TestNoCache(t *testing.T) {
t.Parallel()
app := iris.New()
app.Get("/", cache.NoCache, func(ctx iris.Context) {
ctx.WriteString("no_cache")
@@ -30,7 +29,6 @@ func TestNoCache(t *testing.T) {
}
func TestStaticCache(t *testing.T) {
t.Parallel()
// test change the time format, which is not recommended but can be done.
app := iris.New().Configure(iris.WithTimeFormat("02 Jan 2006 15:04:05 GMT"))
@@ -52,7 +50,7 @@ func TestStaticCache(t *testing.T) {
}
func TestCache304(t *testing.T) {
t.Parallel()
// t.Parallel()
app := iris.New()
expiresEvery := 4 * time.Second
@@ -78,7 +76,7 @@ func TestCache304(t *testing.T) {
}
func TestETag(t *testing.T) {
t.Parallel()
// t.Parallel()
app := iris.New()
n := "_"

11
cache/cache_test.go vendored
View File

@@ -145,10 +145,13 @@ func TestCache(t *testing.T) {
}
}
func TestCacheHandlerParallel(t *testing.T) {
t.Parallel()
TestCache(t)
}
// This works but we have issue on golog.SetLevel and get golog.Level on httptest.New
// when tests are running in parallel and the loggers are used.
// // TODO: Fix it on golog repository or here, we'll see.
// func TestCacheHandlerParallel(t *testing.T) {
// t.Parallel()
// TestCache(t)
// }
func TestCacheValidator(t *testing.T) {
app := iris.New()