diff --git a/embedx/config.schema.json b/embedx/config.schema.json index be8dddc87f9b..662cd3403800 100644 --- a/embedx/config.schema.json +++ b/embedx/config.schema.json @@ -2656,7 +2656,6 @@ "description": "Sets when a session can be extended. Settings this value to `24h` will prevent the session from being extended before until 24 hours before it expires. This setting prevents excessive writes to the database. We highly recommend setting this value.", "type": "string", "pattern": "^([0-9]+(ns|us|ms|s|m|h))+$", - "default": "24h", "examples": [ "1h", "1m", diff --git a/session/handler_test.go b/session/handler_test.go index 938f772a3c6d..352301a682ab 100644 --- a/session/handler_test.go +++ b/session/handler_test.go @@ -1008,8 +1008,9 @@ func TestHandlerRefreshSessionBySessionID(t *testing.T) { require.NoError(t, err) require.Equal(t, http.StatusOK, res.StatusCode) - s, err = reg.SessionPersister().GetSession(context.Background(), s.ID, ExpandNothing) + updatedSession, err := reg.SessionPersister().GetSession(context.Background(), s.ID, ExpandNothing) require.Nil(t, err) + require.True(t, s.ExpiresAt.Before(updatedSession.ExpiresAt)) }) t.Run("case=should return 400 when bad UUID is sent", func(t *testing.T) {