Skip to content

Commit

Permalink
update test timeout rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
quannadev committed Dec 10, 2023
1 parent 5190607 commit 2b83227
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Delta Ingestor
Delta Ingestor
====

[![Build And Publish Image](https://github.com/datafast-network/delta-ingestor/actions/workflows/build.yaml/badge.svg?branch=main)](https://github.com/datafast-network/delta-ingestor/actions/workflows/build.yaml)

## Quick start
```sh
Expand Down
2 changes: 2 additions & 0 deletions ingestor/src/tests/test_eth_ingestor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ async fn test_init_ingestor_stdouts() {
let mut cfg = CommandConfig::default();
cfg.key_prefix = "stdouts".to_string();
cfg.config_file = "../secrets/ethereum.toml".to_string();
cfg.request_timeout = 10;
assert_eq!(IngestorMode::from(&cfg), IngestorMode::StdOut);
eth::create_ingestor(&cfg, &registry).await.unwrap();
}
Expand All @@ -21,6 +22,7 @@ async fn test_init_ingestor_no_bus() {
cfg.key_prefix = "stdouts".to_string();
cfg.resumer = Some("redis://localhost:6379".to_string());
cfg.config_file = "../secrets/ethereum.toml".to_string();
cfg.request_timeout = 10;
assert_eq!(IngestorMode::from(&cfg), IngestorMode::NoProducer);
eth::create_ingestor(&cfg, &registry).await.unwrap();
}

0 comments on commit 2b83227

Please sign in to comment.