Add SlotMeta unit test for connected at slot zero (#29025)

This commit is contained in:
steviez 2022-12-02 15:37:27 -06:00 committed by GitHub
parent 7f268e0f6d
commit 34e5bf1b13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -421,6 +421,12 @@ mod test {
rand::{seq::SliceRandom, thread_rng},
};
#[test]
fn test_slot_meta_slot_zero_connected() {
let meta = SlotMeta::new(0 /* slot */, None /* parent */);
assert!(meta.is_connected());
}
#[test]
fn test_erasure_meta_status() {
use ErasureMetaStatus::*;