-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 some Dash-specific wait_for*
functions in tests
#3122
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scripted diff fails
~/workspace/dash$ ./contrib/devtools/commit-script-check.sh develop..HEAD
Running script for: d8b9c6bde97ff09c33126173459296a8c6e759c2
sed -i 's/wait_for_chainlock_tip_all_nodes\(/wait_for_chainlocked_tip_all_nodes\(/g' test/functional/*.py
sed -i 's/wait_for_chainlock_tip\(/wait_for_chainlocked_tip\(/g' test/functional/*.py
sed -i 's/wait_for_chainlock\(/wait_for_chainlocked_block\(/g' test/functional/*.py
sed -i 's/wait_for_chainlock /wait_for_chainlocked_block /g' test/functional/*.py
sed: -e expression #1, char 75: Unmatched ( or \(
sed: -e expression #1, char 55: Unmatched ( or \(
sed: -e expression #1, char 53: Unmatched ( or \(
Ran on Ubuntu 16.04
321f138
to
321fe82
Compare
0424795
to
321fe82
Compare
This should be fixed now. On a side note though, it looks like this thing https://github.com/dashpay/dash/blob/develop/ci/build_src.sh#L15 doesn't really work (and I'm not sure why). |
@UdjinM6 I assume the Maybe we should do this change in this PR so that we can also properly test it? |
Imo it should probably be a seperate PR that this gets rebased on, but I don't care that much. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK, scripted diff passes, tests pass
The issue with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See inline comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
-BEGIN VERIFY SCRIPT- sed -i 's/wait_for_chainlock_tip_all_nodes(/wait_for_chainlocked_tip_all_nodes(/g' test/functional/*.py sed -i 's/wait_for_chainlock_tip(/wait_for_chainlocked_tip(/g' test/functional/*.py sed -i 's/wait_for_chainlock(/wait_for_chainlocked_block(/g' test/functional/*.py sed -i 's/wait_for_chainlock /wait_for_chainlocked_block /g' test/functional/*.py -END VERIFY SCRIPT-
…of custom timers
ee8fd7c
321fe82
to
ee8fd7c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK, scripted diff passes as well as tests pass
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-utACK
) * scripted-diff: Rename `wait_for_chainlock*` test functions -BEGIN VERIFY SCRIPT- sed -i 's/wait_for_chainlock_tip_all_nodes(/wait_for_chainlocked_tip_all_nodes(/g' test/functional/*.py sed -i 's/wait_for_chainlock_tip(/wait_for_chainlocked_tip(/g' test/functional/*.py sed -i 's/wait_for_chainlock(/wait_for_chainlocked_block(/g' test/functional/*.py sed -i 's/wait_for_chainlock /wait_for_chainlocked_block /g' test/functional/*.py -END VERIFY SCRIPT- * Move `wait_for_*chainlock*` functions from individual tests to DashTestFramework * Use `wait_until` in most Dash-specific `wait_for*` functions instead of custom timers
Refactoring only, should be no changes in behaviour. Ignoring
wait_for_instantlock
here because its behaviour must be changed.