Skip to content

Mock time.Time #104

@PossibleLlama

Description

@PossibleLlama

Is your feature request related to a problem? Please describe.
Occasionally, the tests fail because the mocks are expecting the time to be a millisecond before the actual time.

Describe the solution you'd like
Use an interface for the time functions we need, and then mock them out when testing.

Additional context
This only needs to be in place for unit tests, everything else will use the real implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions