From b2c2fa40a23dad3516ea991e79b4e0e411aa7d04 Mon Sep 17 00:00:00 2001 From: Anatoly Yakovenko Date: Sun, 3 Jun 2018 20:36:27 -0700 Subject: [PATCH] comments --- src/crdt.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/crdt.rs b/src/crdt.rs index e38192881b..2c08055744 100644 --- a/src/crdt.rs +++ b/src/crdt.rs @@ -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();