Skip to content

Commit

Permalink
test: check for 600 transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tguntenaar committed Dec 16, 2024
1 parent 471b1c3 commit a0bf3b5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/nearblocks_client/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,17 @@ mod tests {
let api_key = std::env::var("NEARBLOCKS_API_KEY")
.expect("NEARBLOCKS_API_KEY environment variable not set");
let client = nearblocks_client::ApiClient::new(api_key);
let contract: AccountId = "events-committee.near".parse().expect("Invalid account ID");
let contract: AccountId = "infrastructure-committee.near"
.parse()
.expect("Invalid account ID");

let (transactions, current_cursor) =
fetch_all_new_transactions(&client, &contract, Some(0)).await;

// Check total count
assert!(
transactions.len() >= 1800,
"Expected at least 1800 transactions, but got {}",
transactions.len() >= 600,
"Expected at least 600 transactions, but got {}",
transactions.len()
);

Expand Down

0 comments on commit a0bf3b5

Please sign in to comment.