-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from Jurshsmith/fix-contract-state-delete-test
Fix contract state delete test in CI
- Loading branch information
Showing
4 changed files
with
18 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pub mod db; | ||
pub mod factory; | ||
pub mod test_runner; | ||
mod tests; | ||
pub mod tests; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
use chaindexing::{Chaindexing, ChaindexingRepo, HasRawQueryClient, Repo}; | ||
use chaindexing_tests::db; | ||
use chaindexing_tests::{db, tests}; | ||
|
||
#[tokio::main] | ||
async fn main() { | ||
db::setup(); | ||
let repo = ChaindexingRepo::new(db::database_url().as_str()); | ||
let raw_query_client = repo.get_raw_query_client().await; | ||
Chaindexing::run_internal_migrations(&raw_query_client).await; | ||
|
||
tests::setup().await; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
mod contract_states; | ||
mod events_ingester; | ||
|
||
pub async fn setup() { | ||
contract_states::setup().await; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters