Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(stats): ci fix + small other #1230

Merged
merged 2 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stats/stats-server/tests/it/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pub async fn run_consolidated_tests(mut tests: JoinSet<()>, log_prefix: &str) {
let total = tests.len();
println!("[{log_prefix}]: running {total} tests");
while let Some(test_result) = tests.join_next().await {
let result_string_start = format!("[{log_prefix}]: stats endpoint test ... ");
let result_string_start = format!("[{log_prefix}]: consolidated test ... ");
match test_result {
Ok(()) => println!("{result_string_start}ok"),
Err(e) => {
Expand All @@ -78,7 +78,7 @@ pub async fn run_consolidated_tests(mut tests: JoinSet<()>, log_prefix: &str) {
}
}
let passed = total - failed;
let msg = format!("[{log_prefix}]: {passed}/{total} not fully indexed endpoint tests passed");
let msg = format!("[{log_prefix}]: {passed}/{total} consolidated tests passed");
if failed > 0 {
panic!("{}", msg)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ mod tests {
"update_new_operational_txns_24h",
// block at `2022-11-11T00:00:00` is not counted because
// the relation is 'less than' in query
"9",
"11",
Some(dt("2022-11-11T00:00:00")),
)
.await;
Expand Down
13 changes: 1 addition & 12 deletions stats/stats/src/charts/lines/user_ops/new_aa_wallets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,18 +157,7 @@ pub type NewAccountAbstractionWalletsYearly = DirectVecLocalDbChartSource<
#[cfg(test)]
mod tests {
use super::*;
use crate::tests::{point_construction::dt, simple_test::simple_test_chart};

#[test]
fn print_stmt() {
println!(
"{}",
NewAccountAbstractionWalletsStatement::get_statement(
Some(dt("2023-01-01T00:00:00").and_utc()..dt("2024-01-01T12:00:00").and_utc()),
&BlockscoutMigrations::latest(),
)
)
}
use crate::tests::simple_test::simple_test_chart;

#[tokio::test]
#[ignore = "needs database to run"]
Expand Down
Loading