Skip to content

Cleanup uptime manager constructor #2118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 29, 2023
Merged

Conversation

abi87
Copy link
Contributor

@abi87 abi87 commented Sep 29, 2023

Why this should be merged

In platformvm we take care of passing vm.Clock to vm objects as a reference to be able to set time in test for all objects at the same time. uptime.Manager was not built that way and had its own SetTime method to explicitly control time in UTs. This PR fixes the situation and make uptime.Manager handle time as other platformVM objects

How this works

Drop TestManager interface, drop SetTime method, pass clock reference in uptime.Manager ctor

How this was tested

CI

@abi87 abi87 marked this pull request as ready for review September 29, 2023 09:39
@abi87 abi87 requested a review from marun September 29, 2023 09:41
@abi87 abi87 self-assigned this Sep 29, 2023
@abi87 abi87 force-pushed the fix_platformVM_UTs_2 branch from 3657e8c to d594c57 Compare September 29, 2023 12:10
@StephenButtolph StephenButtolph added this to the v1.10.12 milestone Sep 29, 2023
@StephenButtolph StephenButtolph added vm This involves virtual machines testing This primarily focuses on testing cleanup Code quality improvement labels Sep 29, 2023
@StephenButtolph StephenButtolph merged commit 08044ba into dev Sep 29, 2023
@StephenButtolph StephenButtolph deleted the fix_platformVM_UTs_2 branch September 29, 2023 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code quality improvement testing This primarily focuses on testing vm This involves virtual machines
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants