Make reconstruct_entries_from_blobs() support Blobs and borrowed SharedBlobs, make distinction between to_blobs and to_shared_blobs (#2270)

This commit is contained in:
carllin
2018-12-22 19:30:30 -08:00
committed by GitHub
parent 2c9607d5da
commit 58a4905916
11 changed files with 135 additions and 217 deletions

View File

@@ -1609,9 +1609,10 @@ fn test_broadcast_last_tick() {
break;
}
}
let actual_last_tick = &reconstruct_entries_from_blobs(vec![last_tick_blob])
.expect("Expected to be able to reconstruct entries from blob")
.0[0];
let actual_last_tick =
&reconstruct_entries_from_blobs(vec![&*last_tick_blob.read().unwrap()])
.expect("Expected to be able to reconstruct entries from blob")
.0[0];
assert_eq!(actual_last_tick, &expected_last_tick);
}