-
Notifications
You must be signed in to change notification settings - Fork 35.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: makes wait_for_getdata pops data on checks, plus check the mess…
…age types if provided Currently, `wait_for_getdata` checks data in `last_message`, but it leaves is as is. This results in multiple tests having to manually pop data from the collection is multiple getdata messages need to be checked in order to make sure that we are not asserting the oldest message. This was partially solved by checking the hash of what was being waited for, but the issue remains if the same tx/block is sent multiple times during the test. In some of this scenarios, we were also manually checking the getdata message type manually which is not possible anymore if we pop data on checking, so `wait_for_getdata` is extended to support checking the type when we care about it
- Loading branch information
Showing
3 changed files
with
20 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters