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:
parent
5671e3837d
commit
e166619883
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user