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

Clear strMiscWarning before running PartitionAlert #6888

Merged
merged 1 commit into from Oct 26, 2015

Conversation

CodeShark
Copy link
Contributor

@CodeShark CodeShark commented Oct 25, 2015

I was getting strange travis errors earlier because some test that was running prior to PartitionAlert in alert_tests apparently was setting the strMiscWarning variable. Using a side effect such as this as an error handling mechanism is probably not a very good idea to begin with...but if we're going to do this, we should make sure to reset the variable before each call so we can tell which one set it.

Note: The implication here is that something before the call on line 224 is setting this variable and we can't easily figure out what it is...which should probably also be fixed.

…pp and initialize strMiscWarning before calling PartitionCheck()."
@laanwj laanwj added the Tests label Oct 26, 2015
@laanwj
Copy link
Member

laanwj commented Oct 26, 2015

Agree strMiscWarning is terrible, see also #6809
Starting the test with a clean slate makes sense though. ACK.

@jtimon
Copy link
Member

jtimon commented Oct 26, 2015

ACK

@btcdrak
Copy link
Contributor

btcdrak commented Oct 26, 2015

Tested ACK

@instagibbs
Copy link
Member

instagibbs commented Oct 26, 2015

utACK

@laanwj laanwj merged commit 143d173 into bitcoin:master Oct 26, 2015
laanwj added a commit that referenced this pull request Oct 26, 2015
143d173 Use BOOST_CHECK_MESSAGE() rather than BOOST_CHECK() in alerts_tests.cpp and initialize strMiscWarning before calling PartitionCheck()." (Eric Lombrozo)
luke-jr pushed a commit to luke-jr/bitcoin that referenced this pull request Jan 9, 2016
…pp and initialize strMiscWarning before calling PartitionCheck()."

Github-Pull: bitcoin#6888
Rebased-From: 143d173
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants