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(iota-indexer): fix failing test #4173

Merged
merged 10 commits into from
Nov 27, 2024
3 changes: 2 additions & 1 deletion crates/iota-indexer/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,12 @@ pub async fn start_test_indexer_impl<T: R2D2Connection + 'static>(

let mut config = IndexerConfig {
db_url: Some(db_url.clone().into()),
// Enable Rest Api checkpoint sync
remote_store_url: Some(format!("{}/api/v1", rpc_url)),
rpc_client_url: rpc_url,
reset_db: true,
fullnode_sync_worker: true,
rpc_server_worker: false,
remote_store_url: None,
data_ingestion_path,
..Default::default()
};
Expand Down
2 changes: 1 addition & 1 deletion crates/iota-indexer/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pub async fn start_test_cluster_with_read_write_indexer(
builder_modifier: Option<Box<dyn FnOnce(TestClusterBuilder) -> TestClusterBuilder>>,
) -> (TestCluster, PgIndexerStore<PgConnection>, HttpClient) {
let temp = tempdir().unwrap().into_path();
let mut builder = TestClusterBuilder::new().with_data_ingestion_dir(temp.clone());
let mut builder = TestClusterBuilder::new();

if let Some(builder_modifier) = builder_modifier {
builder = builder_modifier(builder);
Expand Down
1 change: 1 addition & 0 deletions crates/iota-indexer/tests/rpc-tests/read_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,7 @@ fn get_total_transaction_blocks() {

runtime.block_on(async move {
indexer_wait_for_checkpoint(store, checkpoint).await;

let total_transaction_blocks = client.get_total_transaction_blocks().await.unwrap();

let fullnode_checkpoint = cluster
Expand Down
Loading