Skip to content
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

refactor: add a new flag disable_mocktime to set_test_params() #6242

Merged

Conversation

knst
Copy link
Collaborator

@knst knst commented Aug 30, 2024

Issue being fixed or feature implemented

To disable mocktime you should re-implement setup_nodes(). It seems as bug-friendly solution

What was done?

This PR introduce a new flag "disable_mocktime" which can be set in set_test_params.
It seems more error prune and the code is shorter

How Has This Been Tested?

Run unit/functional tests including future changes from #6235

Breaking Changes

N/A

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation
  • I have assigned this pull request to a milestone

@knst knst added this to the 21.2 milestone Aug 30, 2024
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gitlab CI won't pick the branch for some reason, try rebasing/force-pushing maybe?

test/functional/p2p_initial_headers_sync.py Outdated Show resolved Hide resolved
test/functional/test_framework/test_framework.py Outdated Show resolved Hide resolved
test/functional/test_framework/test_node.py Outdated Show resolved Hide resolved
@knst knst force-pushed the refactor-disable-mocktime-flag branch from f48a8a1 to ae71455 Compare August 30, 2024 14:50
UdjinM6
UdjinM6 previously approved these changes Aug 30, 2024
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, utACK ae71455

@knst knst force-pushed the refactor-disable-mocktime-flag branch from ae71455 to 5339eb6 Compare September 1, 2024 11:24
@knst
Copy link
Collaborator Author

knst commented Sep 1, 2024

@knst knst force-pushed the refactor-disable-mocktime-flag branch from ae71455 to 5339eb6

Force pushed due to new functional test with no-mocktime: interface_zmq.py

@knst knst force-pushed the refactor-disable-mocktime-flag branch from 5339eb6 to d21f6c8 Compare September 1, 2024 11:26
@knst knst requested a review from UdjinM6 September 1, 2024 11:26
knst and others added 2 commits September 1, 2024 18:27
It's better than re-implement setup_nodes each time when you want just disable mocktime.
It seems more error prune and the code is shorter
@knst knst force-pushed the refactor-disable-mocktime-flag branch from d21f6c8 to ef4d74a Compare September 1, 2024 11:27
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK ef4d74a

Copy link
Collaborator

@kwvg kwvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK ef4d74a

Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK ef4d74a

@PastaPastaPasta PastaPastaPasta merged commit b1fadfb into dashpay:develop Sep 4, 2024
36 of 37 checks passed
@UdjinM6 UdjinM6 modified the milestones: 21.2, 22 Oct 29, 2024
@knst knst deleted the refactor-disable-mocktime-flag branch November 30, 2024 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants