Fix test_replicate too

This commit is contained in:
Greg Fitzgerald
2018-06-25 18:16:32 -06:00
committed by Greg Fitzgerald
parent 1691060a22
commit d5c0557891

View File

@ -230,7 +230,7 @@ pub mod tests {
for entry in vec![entry0, entry1] {
let b = resp_recycler.allocate();
let b_ = b.clone();
{
let mut w = b.write().unwrap();
w.set_index(blob_id).unwrap();
blob_id += 1;
@ -241,8 +241,8 @@ pub mod tests {
w.data_mut()[..serialized_entry.len()].copy_from_slice(&serialized_entry);
w.set_size(serialized_entry.len());
w.meta.set_addr(&replicate_addr);
drop(w);
msgs.push_back(b_);
}
msgs.push_back(b);
}
}