Skip to content

Commit

Permalink
check chain state every 2 secs
Browse files Browse the repository at this point in the history
  • Loading branch information
tbro committed Sep 26, 2024
1 parent 8fce6ba commit b940e1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/demo_native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,12 @@ async fn test_smoke() -> Result<()> {

let mut i = 1;
loop {
sleep(Duration::from_millis(1500)).await;
sleep(Duration::from_secs(1)).await;

let new = testing.test_state().await;

println!("New State:{}", new);
if new <= initial {
if i % 2 = 0 && new <= initial {
panic!("Chain state not incrementing");
}

Expand Down

0 comments on commit b940e1b

Please sign in to comment.