Skip to content

Commit

Permalink
Add 1 block delay to make tests pass more often
Browse files Browse the repository at this point in the history
  • Loading branch information
Sliman4 committed Dec 29, 2024
1 parent bb9c1c3 commit 4d3c64f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oracle-contract/tests/tests/example_consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async fn example_consumer_is_operational() -> Result<(), Box<dyn std::error::Err
.transact_async()
.await?;

sandbox.fast_forward(49).await?; // no idea why that many blocks are needed, 49 works but 48 doesn't
sandbox.fast_forward(50).await?; // no idea why that many blocks are needed, 49 works most of the time but 48 doesn't

let outcome = producer_account
.call(contract.id(), "respond")
Expand Down

0 comments on commit 4d3c64f

Please sign in to comment.