Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

client/finality-grandpa: Add regression test for observer polling network (was #4778)#4795

Merged
gavofyork merged 3 commits intomasterfrom
mxinden-regression-observer-test
Jan 31, 2020
Merged

client/finality-grandpa: Add regression test for observer polling network (was #4778)#4795
gavofyork merged 3 commits intomasterfrom
mxinden-regression-observer-test

Conversation

@gavofyork
Copy link
Member

Same as #4778, except with nits fixed.

mxinden and others added 3 commits January 30, 2020 11:21
Ensure `Future` implementation of `ObserverWork` is polling its
`NetworkBridge`. Regression test for bug introduced in d4fbb89 and
fixed in 7d58cee.

When polled, `NetworkBridge` forwards reputation change requests from
the `GossipValidator` to the underlying `dyn Network`. This test
triggers a reputation change by calling `GossipValidator::validate` with
an invalid gossip message. After polling the `ObserverWork` which should
poll the `NetworkBridge`, the reputation change should be forwarded to
the test network.
@gavofyork gavofyork merged commit 85b65a3 into master Jan 31, 2020
@gavofyork gavofyork deleted the mxinden-regression-observer-test branch January 31, 2020 19:12
@mxinden
Copy link
Contributor

mxinden commented Feb 4, 2020

Thanks @gavofyork.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants