Skip to content

Commit

Permalink
test for stale check
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseAbram committed Aug 22, 2024
1 parent 5175183 commit eddb5e5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/threshold-signature-server/src/validator/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,14 @@ async fn test_reshare() {
serialize(&aux_info_after_rotate).unwrap()
);
}

run_to_block(&rpc, block_number + 5).await;

let response_stale =
client.post("http://127.0.0.1:3001/validator/rotate_network_key").send().await.unwrap();

assert_eq!(response_stale.text().await.unwrap(), "Data is stale");

// TODO #981 - test signing a message with the new keyshare set
clean_tests();
}
Expand Down

0 comments on commit eddb5e5

Please sign in to comment.