Skip to content

test: allow zero uptime in rpc_query_uptime - #38

Merged
Sjors merged 1 commit into
2140-dev:masterfrom
Sjors:2026/09/uptime-zero
Sep 18, 2026
Merged

Sjors merged 1 commit into
2140-dev:masterfrom
Sjors:2026/09/uptime-zero

Conversation

@Sjors

@Sjors Sjors commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

The uptime RPC returns whole seconds, so it is 0 when the test runs within a second of node startup. This happens more often now that contrib/run-tests.sh starts the node right before the tests.

Fixes #37

The uptime RPC returns whole seconds, so it is 0 when the test runs
within a second of node startup. This happens more often now that
contrib/run-tests.sh starts the node right before the tests.

Fixes 2140-dev#37
@Sjors
Sjors requested a review from rustaceanrob September 18, 2026 10:47
@Sjors
Sjors merged commit 8fc3c8b into 2140-dev:master Sep 18, 2026
1 check passed
@Sjors
Sjors deleted the 2026/09/uptime-zero branch September 18, 2026 10:52
@plebhash plebhash mentioned this pull request Oct 23, 2026
bit-aloo pushed a commit that referenced this pull request Oct 23, 2026
The uptime RPC returns whole seconds, so it is 0 when the test runs
within a second of node startup. This happens more often now that
contrib/run-tests.sh starts the node right before the tests.

Fixes #37

Github-Pull: #38
Rebased-From: 8fc3c8b
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.

rpc_query_uptime can fail intermittently

2 participants