conductor-oss / conductor-oss/conductor

[FEATURE]: Abstraction of time so that time can be manipulated in tests

Open
#482 0 comments 0 reactions 0 assignees View on GitHub
enhancement tests
Dominant language
Java
Stars
32.2k
Forks
1k
Avg merge
2d
Merged PRs (30d)
33

Description

## Describe the Feature Request
We have a use case where we want to manipulate time during testing. Currently, conductor uses native methods (`System.currentTimeMillis`) to get the time at different places. This makes testing hard incase you want to manipulate time.
We want an ability in conductor to have a abstracted service that manages the time, so that we can use that service to modify the time as per the need during testing.

## Describe Preferred Solution
A service having static methods to return current time.

## Describe Alternatives

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.