fix writer

This commit is contained in:
Anatoly Yakovenko
2018-03-26 11:17:19 -07:00
committed by Greg Fitzgerald
parent 112aecf6eb
commit 14239e584f
3 changed files with 13 additions and 9 deletions

View File

@ -128,6 +128,7 @@ mod tests {
use signature::{KeyPair, KeyPairUtil};
use std::sync::{Arc, Mutex};
use std::sync::atomic::{AtomicBool, Ordering};
use std::io::sink;
#[test]
fn test_accountant_stub() {
@ -137,7 +138,7 @@ mod tests {
let acc = Accountant::new(&alice, Some(30));
let bob_pubkey = KeyPair::new().pubkey();
let exit = Arc::new(AtomicBool::new(false));
let acc = Arc::new(Mutex::new(AccountantSkel::new(acc)));
let acc = Arc::new(Mutex::new(AccountantSkel::new(acc, sink())));
let threads = AccountantSkel::serve(acc, addr, exit.clone()).unwrap();
sleep(Duration::from_millis(30));