Skip to content

Commit 72e9760

Browse files
committed
chore(integration-tests): remove unused test function and improve logging
- Remove test_direct_service_rav_v2_simplified (299 lines) - Clean up debug logging in find_allocation function - Remove commented code and update function references in main.rs
1 parent ac0e7aa commit 72e9760

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

integration-tests/src/main.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33

44
mod constants;
55
mod database_checker;
6+
mod env_loader;
67
mod load_test;
78
mod metrics;
89
mod rav_tests;
910
mod signature_test;
11+
mod test_config;
1012
mod utils;
1113

1214
use anyhow::Result;
@@ -54,7 +56,6 @@ async fn main() -> Result<()> {
5456
let cli = Cli::parse();
5557

5658
match cli.command {
57-
// cargo run -- rav1
5859
Commands::Rav1 => {
5960
test_invalid_chain_id().await?;
6061
test_tap_rav_v1().await?;
@@ -64,13 +65,11 @@ async fn main() -> Result<()> {
6465
test_tap_rav_v2().await?;
6566
}
6667
Commands::DirectService => {
67-
use crate::rav_tests::test_direct_service_rav_v2_simplified;
68+
use crate::rav_tests::test_direct_service_rav_v2;
6869

69-
// test_direct_service_rav_v2().await?;
70-
test_direct_service_rav_v2_simplified().await?;
71-
// test_direct_service_rav_v2_config_aligned().await?;
70+
test_direct_service_rav_v2().await?;
7271
}
73-
// cargo run -- load --num-receipts 1000
72+
7473
Commands::LoadService { num_receipts } => {
7574
let concurrency = num_cpus::get();
7675
receipt_handler_load_test(num_receipts, concurrency).await?;

integration-tests/src/utils.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,6 @@ pub async fn find_allocation(http_client: Arc<Client>, url: &str) -> Result<Stri
154154
.send()
155155
.await?;
156156

157-
println!("***Received response from network subgraph {:?}", response);
158-
159157
if !response.status().is_success() {
160158
return Err(anyhow::anyhow!(
161159
"Network subgraph request failed with status: {}",
@@ -165,6 +163,10 @@ pub async fn find_allocation(http_client: Arc<Client>, url: &str) -> Result<Stri
165163

166164
// Try to find a valid allocation
167165
let response_text = response.text().await?;
166+
println!(
167+
"***Received response from network subgraph {}",
168+
response_text
169+
);
168170

169171
let json_value = serde_json::from_str::<serde_json::Value>(&response_text)?;
170172
json_value

0 commit comments

Comments
 (0)