Test: Compare bridges in bucket to expected
This commit is contained in:
parent
ec3cbe4e72
commit
69953bc16c
|
@ -5,7 +5,6 @@ increasing the number of days that have passed, which allows us to test
|
|||
trust migration and level up functions. */
|
||||
|
||||
// TODO:
|
||||
// - compare buckets to ensure they're the same
|
||||
// - unit test file save/read functions
|
||||
// - unit test migration when possible
|
||||
|
||||
|
@ -36,9 +35,9 @@ async fn test_credential_operations() {
|
|||
get_lox_credential(&net, &open_inv, get_lox_pub(&la_pubkeys)).await;
|
||||
let bucket = get_bucket(&net, &cred).await;
|
||||
|
||||
// Note: This is unreliable for some reason...
|
||||
// assert_eq!(bucket[0], bridgeline);
|
||||
assert_eq!(bucket[0], bridgeline);
|
||||
assert_eq!(bucket[1], BridgeLine::default());
|
||||
assert_eq!(bucket[2], BridgeLine::default());
|
||||
|
||||
// Level up Lox Credential
|
||||
assert_eq!(scalar_u32(&cred.trust_level).unwrap(), 0);
|
||||
|
|
Loading…
Reference in New Issue