Tests for new network code (#897)

* move protocol.rs into subfolder

* add trait for mocking network behavior

* add a mock version of network ops

* remove some redundant parameters from service messages

* ensure fetching erasure chunks automatically cancels

* introduce dummy ProvideRuntimeApi

* abstract over gossip somewhat

* add mock gossip handler

* skeleton test

* remove dependence of shared table on router

* remove worker dependence on its own sender

* test shutdown

* add tests

* test that gossip streams are cleaned up correctly

* refactor worker out into its own struct and reduce bound on executor

* remove reliance of tests on global thread pool
This commit is contained in:
Robert Habermeier
2020-03-16 06:17:08 -04:00
committed by GitHub
parent a81d8cb220
commit 260b2fa336
5 changed files with 924 additions and 179 deletions
File diff suppressed because it is too large Load Diff