Parcourir la source

test: update stale threshold test to subtract one more second

Co-Authored-By: Jayant Krishnamurthy <jayant@dourolabs.xyz>
Devin AI il y a 9 mois
Parent
commit
2db3fbba14
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      target_chains/near/receiver/tests/workspaces.rs

+ 1 - 1
target_chains/near/receiver/tests/workspaces.rs

@@ -300,7 +300,7 @@ async fn test_stale_threshold() {
         .duration_since(std::time::UNIX_EPOCH)
         .expect("Failed to get UNIX timestamp")
         .as_secs()
-        - DEFAULT_VALID_TIME_PERIOD;
+        - (DEFAULT_VALID_TIME_PERIOD + 1);
 
     // Submit a Price Attestation to the contract.
     let vaa = create_vaa_from_payload(