fix test imports

This commit is contained in:
Robert Habermeier 2017-01-04 16:12:58 +01:00
parent 5060370c70
commit 6ad0a0baaa
2 changed files with 3 additions and 2 deletions

View File

@ -504,8 +504,7 @@ impl Handler for OnDemand {
#[cfg(test)]
mod tests {
use super::*;
use on_demand::request;
use net::{BasicContext, ReqId, Error as LesError};
use net::{Announcement, BasicContext, ReqId, Error as LesError};
use request::{Request as LesRequest, Kind as LesRequestKind};
use network::{PeerId, NodeId};
use futures::Future;

View File

@ -289,6 +289,8 @@ mod tests {
#[test]
fn check_state_proof() {
use rlp::{RlpStream, Stream};
let mut root = H256::default();
let mut db = MemoryDB::new();
let mut header = Header::new();