Unverified Commit 5729f6cd authored by Ashley's avatar Ashley
Browse files

Fix validation tests

parent a8206125
......@@ -7,7 +7,6 @@ edition = "2018"
[dependencies]
futures = "0.3.1"
futures-timer = "2.0"
parking_lot = "0.9.0"
tokio = { version = "0.2.4", features = ["rt-core", "blocking"] }
derive_more = "0.14.1"
......
......@@ -107,6 +107,7 @@ impl Future for Includable {
#[cfg(test)]
mod tests {
use super::*;
use futures::executor::block_on;
#[test]
fn it_works() {
......
......@@ -591,8 +591,8 @@ mod tests {
fn gossip_messages_for(
&self,
_topic: Hash
) -> Box<dyn futures03::Stream<Item = (Hash, Hash, ErasureChunk)> + Unpin + Send> {
Box::new(futures03::stream::empty())
) -> Box<dyn futures::Stream<Item = (Hash, Hash, ErasureChunk)> + Unpin + Send> {
Box::new(futures::stream::empty())
}
fn gossip_erasure_chunk(
......@@ -765,7 +765,7 @@ mod tests {
n_validators as u32,
).unwrap();
let producer: ParachainWork<future::FutureResult<_, ::std::io::Error>> = ParachainWork {
let producer: ParachainWork<future::Ready<Result<_, ::std::io::Error>>> = ParachainWork {
work: Work {
candidate_receipt: candidate,
fetch: future::ok(pov_block.clone()),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment