1
0
mirror of https://github.com/tonarino/innernet.git synced 2025-01-08 04:04:48 +02:00

client(datastore): fix tests

This commit is contained in:
Jake McGinty 2021-05-10 00:08:33 +09:00
parent 5671e3837d
commit e166619883

View File

@ -215,6 +215,14 @@ mod tests {
// Should work, since peer is unmodified.
store.update_peers(vec![]).unwrap();
assert_eq!(store.peers(), &*BASE_PEERS);
let new_peers = BASE_PEERS
.iter()
.cloned()
.map(|mut p| {
p.contents.is_disabled = true;
p
})
.collect::<Vec<_>>();
assert_eq!(store.peers(), &new_peers);
}
}