Skip to content

Commit

Permalink
organize test dir
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Nov 19, 2024
1 parent 2d98996 commit 4764076
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use support::pg_testcontainer::get_test_pool;

use libra_forensic_db::extract_snapshot::{extract_current_snapshot, extract_v5_snapshot};

#[ignore]
#[tokio::test]
async fn test_e2e_load_v5_snapshot() -> anyhow::Result<()> {
let (pool, _c) = get_test_pool().await?;
Expand Down Expand Up @@ -40,6 +41,7 @@ async fn test_e2e_load_v7_snapshot() -> anyhow::Result<()> {
Ok(())
}

#[ignore]
#[tokio::test]
async fn test_e2e_load_v7_snapshot_on_age_graph() -> anyhow::Result<()> {
// USING APACHE/AGE
Expand All @@ -57,6 +59,7 @@ async fn test_e2e_load_v7_snapshot_on_age_graph() -> anyhow::Result<()> {
Ok(())
}

#[ignore]
#[tokio::test]
async fn test_ingest_two_v6_snapshot_archives() -> anyhow::Result<()> {
let (pool, _c) = get_test_pool().await?;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
mod support;
use sqlx::Row;

#[ignore]
#[tokio::test]

async fn test_migrate_from_file_pg() -> anyhow::Result<()> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use libra_forensic_db::table_structs::{
};
use libra_types::exports::AccountAddress;

#[ignore]
#[tokio::test]
async fn insert_one_account() -> anyhow::Result<()> {
let (pool, _c) = get_test_pool().await?;
Expand All @@ -26,6 +27,7 @@ async fn insert_one_account() -> anyhow::Result<()> {
Ok(())
}

#[ignore]
#[tokio::test]
async fn batch_insert_account() -> anyhow::Result<()> {
let (pool, _c) = get_test_pool().await?;
Expand All @@ -44,6 +46,7 @@ async fn batch_insert_account() -> anyhow::Result<()> {
Ok(())
}

#[ignore]
#[tokio::test]
async fn batch_duplicates_fail_gracefully() -> anyhow::Result<()> {
let (pool, _c) = get_test_pool().await?;
Expand All @@ -68,6 +71,7 @@ async fn batch_duplicates_fail_gracefully() -> anyhow::Result<()> {
Ok(())
}

#[ignore]
#[tokio::test]
async fn batch_insert_coin() -> anyhow::Result<()> {
let (pool, _c) = get_test_pool().await?;
Expand Down Expand Up @@ -101,6 +105,8 @@ async fn batch_insert_coin() -> anyhow::Result<()> {

// The table should not update if the balance remains the same.
// new records are only inserted when the balance changes.
#[ignore]

#[tokio::test]
async fn increment_coin_noop() -> anyhow::Result<()> {
let (pool, _c) = get_test_pool().await?;
Expand Down Expand Up @@ -150,6 +156,8 @@ async fn increment_coin_noop() -> anyhow::Result<()> {
}

// Only increment the balance table when their balance changes.
#[ignore]

#[tokio::test]
async fn increment_coin() -> anyhow::Result<()> {
let (pool, _c) = get_test_pool().await?;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
mod experimental;
mod support;

#[ignore]
#[tokio::test]
async fn can_init_pg() -> anyhow::Result<()> {
let (pool, _c) = support::pg_testcontainer::get_test_pool().await?;
Expand Down

0 comments on commit 4764076

Please sign in to comment.