Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
reduce the number of pending tx for CI to work
Browse files Browse the repository at this point in the history
  • Loading branch information
tdelabro committed Oct 12, 2023
1 parent 029bef1 commit 0a1a2ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions starknet-rpc-test/pending_transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async fn works_with_one_pending_transaction(madara: &ThreadSafeMadaraClient) ->

#[rstest]
#[tokio::test]
async fn works_with_500_pending_transactions(madara: &ThreadSafeMadaraClient) -> Result<(), anyhow::Error> {
async fn works_with_50_pending_transactions(madara: &ThreadSafeMadaraClient) -> Result<(), anyhow::Error> {
let rpc = madara.get_starknet_client().await;

let mut madara_write_lock = madara.write().await;
Expand All @@ -42,8 +42,8 @@ async fn works_with_500_pending_transactions(madara: &ThreadSafeMadaraClient) ->
let nonce = nonce.to_bytes_be();
let nonce: u64 = nonce[31] as u64;

// loop from 0 to 500
for nonce_idx in 0..500 {
// loop from 0 to 50
for nonce_idx in 0..50 {
let _ = account
.transfer_tokens(
FieldElement::from_hex_be("0x123").unwrap(),
Expand All @@ -60,7 +60,7 @@ async fn works_with_500_pending_transactions(madara: &ThreadSafeMadaraClient) ->

// not validating the fields inside the transaction as
// that is covered in get_block_with_txs
assert_eq!(pending_txs.len(), 500);
assert_eq!(pending_txs.len(), 50);

Ok(())
}
Expand Down

0 comments on commit 0a1a2ea

Please sign in to comment.