diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2023-10-08 08:14:53 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-08 07:14:53 +1000 |
| commit | b1255c2b17314b88c11da8843930c18ce91abf39 (patch) | |
| tree | f542c23827d2b9d21dade47a20495f9653824ade /internal/mocks | |
| parent | 829a3d6d94cb69cb9209a011334c2330061a7ae5 (diff) | |
refactor: clock package (#6100)
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/mocks')
| -rw-r--r-- | internal/mocks/authelia_ctx.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/mocks/authelia_ctx.go b/internal/mocks/authelia_ctx.go index c218c4eec..54a775e08 100644 --- a/internal/mocks/authelia_ctx.go +++ b/internal/mocks/authelia_ctx.go @@ -15,13 +15,13 @@ import ( "github.com/valyala/fasthttp" "github.com/authelia/authelia/v4/internal/authorization" + "github.com/authelia/authelia/v4/internal/clock" "github.com/authelia/authelia/v4/internal/configuration/schema" "github.com/authelia/authelia/v4/internal/middlewares" "github.com/authelia/authelia/v4/internal/random" "github.com/authelia/authelia/v4/internal/regulation" "github.com/authelia/authelia/v4/internal/session" "github.com/authelia/authelia/v4/internal/templates" - "github.com/authelia/authelia/v4/internal/utils" ) // MockAutheliaCtx a mock of AutheliaCtx. @@ -40,13 +40,13 @@ type MockAutheliaCtx struct { UserSession *session.UserSession - Clock utils.TestingClock + Clock clock.Fixed } // NewMockAutheliaCtx create an instance of AutheliaCtx mock. func NewMockAutheliaCtx(t *testing.T) *MockAutheliaCtx { mockAuthelia := new(MockAutheliaCtx) - mockAuthelia.Clock = utils.TestingClock{} + mockAuthelia.Clock = clock.Fixed{} datetime, _ := time.Parse("2006-Jan-02", "2013-Feb-03") mockAuthelia.Clock.Set(datetime) |
