This commit is contained in:
Anatoly Yakovenko 2018-06-03 20:36:27 -07:00 committed by Greg Fitzgerald
parent 50458d9524
commit b2c2fa40a2
1 changed files with 5 additions and 1 deletions

View File

@ -875,6 +875,8 @@ mod tests {
}
assert!(one && two);
}
/// test that gossip requests are eventually generated for all nodes
#[test]
fn gossip_request() {
let me = ReplicatedData::new(
@ -911,7 +913,8 @@ mod tests {
"127.0.0.1:1238".parse().unwrap(),
);
crdt.insert(&nxt2);
// check that the service works
// and that it eventually produces a request for both nodes
let (sender, reader) = channel();
let recycler = BlobRecycler::default();
let exit = Arc::new(AtomicBool::new(false));
@ -945,6 +948,7 @@ mod tests {
assert!(one && two);
}
/// test window requests respond with the right blob, and do not overrun
#[test]
fn run_window_request() {
let window = default_window();