Skip to content

Race condition in unit test node.fork_publish_inactive #3584

@dsiganos

Description

@dsiganos

Unit test node.fork_publish_inactive has a race condition.
It is not guaranteed that the election will remain in the AEC long enough to access it with this line:

auto election = node.active.election (send1->qualified_root ());

The test fails every time, by adding a 5 seconds delay, just before accessing the election:

	system.poll (5s);
	auto election = node.active.election (send1->qualified_root ());

Metadata

Metadata

Assignees

Labels

unit testRelated to a new, changed or fixed unit test

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions