client(datastore): fix tests

pull/76/head
Jake McGinty 2021-05-10 00:08:33 +09:00
parent 5671e3837d
commit e166619883
1 changed files with 9 additions and 1 deletions

View File

@ -215,6 +215,14 @@ mod tests {
// Should work, since peer is unmodified. // Should work, since peer is unmodified.
store.update_peers(vec![]).unwrap(); 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);
} }
} }