Procházet zdrojové kódy

Test: Compare bridges in bucket to expected

Vecna před 6 měsíci
rodič
revize
69953bc16c
1 změnil soubory, kde provedl 2 přidání a 3 odebrání
  1. 2 3
      src/tests.rs

+ 2 - 3
src/tests.rs

@@ -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);