Skip to content

test: Fix failing time check in rpc_net.py - #28671

Merged
fanquake merged 1 commit into
bitcoin:masterfrom
maflcko:2310-test-less-fail-
Oct 19, 2023
Merged

fanquake merged 1 commit into
bitcoin:masterfrom
maflcko:2310-test-less-fail-

Conversation

@maflcko

@maflcko maflcko commented Oct 18, 2023 •

Copy link
Copy Markdown
Member

This check fails on slow runners, such as s390x qemu.

Fix it by using mocktime.

See #28523 (comment)

@DrahtBot

DrahtBot commented Oct 18, 2023 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK 0xB10C, pinheadmz, brunoerg

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@0xB10C

0xB10C commented Oct 18, 2023

Copy link
Copy Markdown
Contributor

ACK fa4c683

You could reference your initial report in the OP.

@DrahtBot
DrahtBot removed the request for review from 0xB10C October 18, 2023 09:11

@pinheadmz pinheadmz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ACK fa4c683

Nice simple fix. Confirmed locally that setmocktime precisely sets the addr info and otherwise there will always be some discrepancy between when the addr is added and when it is read from the RPC

Show Signature
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

ACK fa4c6836c9366c3cc575cb386a397840d5f1aa57
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE5hdzzW4BBA4vG9eM5+KYS2KJyToFAmUwIacACgkQ5+KYS2KJ
yTqv8g//SCGTyKRK2ZEiZc6fWnrjDixHTjsl5IIY8Z+TkTkKL0LFiyPhJpQRGS1H
3NUiju5eVQ4IoCDWwl7ruTv+CTn+wMHU5oxCP8CN/Db8oBavw8iHTKSJ9LVsRrp2
Nno4pmoG/+Ym24ECC+eJY9Glj5wHgLXYi+TK5vKU7zeMk0L0Zsm5qgR5+apPPGFq
6CBcPyalesdZRHX7eII81HHh1c4aCNUkEMAO3uCAtUFB12jAuv/3Vb9QrEaeEoZg
gTDVtc1Na8nX8X5qZ3TKYlgIooYzEl0qAe09waA3kwLJUafODcBwsJQFbZ57ahHc
jWeLFE5kBQoRa4AKv8/uZpwO60vJgwhE/VyQMkaUIxBdKQj9yjs00pdgneWMSoPi
Je40migaL2e55rSPRENNCwuwitTxL7a9TLzQdxH0o3xxgaLiCLmhRPQx0aqcwvJv
4kjJjsGWVluXpto/zd9ffMmUcpcFYTLyrJw7eL57jGBumUmJwMjruEPSn8vAA8a2
vUley1CXkirQV+tHlf74k1Pr4s3FLJaNh1BZHOg9QPKfRBPmtZ0WLUsK5YV10hsD
eVSK0lq/+WKAgEaX/lzT/+B7H0dINHEnxU7nYh+vBWT5XuDjfFIO9OyP32u22F1I
dxm6Vlc0UmP6UmsNq65nUI1uVBvy9Gd3a++POiTAZJV80x0afRQ=
=aB67
-----END PGP SIGNATURE-----

pinheadmz's public key is on keybase

@brunoerg brunoerg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

crACK fa4c683

@fanquake
fanquake merged commit f4049ea into bitcoin:master Oct 19, 2023
@maflcko
maflcko deleted the 2310-test-less-fail- branch October 19, 2023 08:49
Frank-GER pushed a commit to syscoin/syscoin that referenced this pull request Oct 21, 2023
fa4c683 test: Fix failing time check in rpc_net.py (MarcoFalke)

Pull request description:

  This check fails on slow runners, such as s390x qemu.

  Fix it by using mocktime.

  See bitcoin#28523 (comment)

ACKs for top commit:
  0xB10C:
    ACK fa4c683
  pinheadmz:
    ACK fa4c683
  brunoerg:
    crACK fa4c683

Tree-SHA512: 83fb534682e11e97537dc89de8c16f206f38af1a892a2d5970c02684c05eaea8fc9adba3159f16b2440ca0b3871d513a0562a6f3a38f19a5574a47be0919e42f
@bitcoin bitcoin locked and limited conversation to collaborators Oct 18, 2024
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.

6 participants