Skip to content

Change how UTCInstant gets Clock #246

Open
@ubamrein

Description

@ubamrein

For testing purposes it is neat to overwrite the clock of UTCInstant. Currently, the used clock is static, which brings its various problems with it. Also the function setClock overwrites the clock for all future instances, which might lead to unexpected behaviour in case of forgotten resetClock. The latter can be prevented by using the proper Disposable feature of the UTCInstant class.

However, we should overthink the architecture and discuss the issue here, rather than in #215 since it does not pose an immediate risk and should no prevent he PR from merging (it only appears in unit-tests and integration-tests).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions