1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-19 10:57:05 +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 := "_"