Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Sep 16, 2024
1 parent 42b80ce commit ff2d7a3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions crates/torii/core/src/sql_test.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use std::str::FromStr;
use std::sync::Arc;

use cainome::cairo_serde::ContractAddress;
use camino::Utf8PathBuf;
Expand Down Expand Up @@ -42,11 +43,11 @@ where
provider,
Processors {
event: generate_event_processors_map(vec![
Box::new(RegisterModelProcessor),
Box::new(StoreSetRecordProcessor),
Box::new(StoreUpdateRecordProcessor),
Box::new(StoreUpdateMemberProcessor),
Box::new(StoreDelRecordProcessor),
Arc::new(RegisterModelProcessor),
Arc::new(StoreSetRecordProcessor),
Arc::new(StoreUpdateRecordProcessor),
Arc::new(StoreUpdateMemberProcessor),
Arc::new(StoreDelRecordProcessor),
])?,
..Processors::default()
},
Expand Down
7 changes: 4 additions & 3 deletions crates/torii/graphql/src/tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use std::str::FromStr;
use std::sync::Arc;

use anyhow::Result;
use async_graphql::dynamic::Schema;
Expand Down Expand Up @@ -354,9 +355,9 @@ pub async fn spinup_types_test() -> Result<SqlitePool> {
account.provider(),
Processors {
event: generate_event_processors_map(vec![
Box::new(RegisterModelProcessor),
Box::new(StoreSetRecordProcessor),
Box::new(StoreDelRecordProcessor),
Arc::new(RegisterModelProcessor),
Arc::new(StoreSetRecordProcessor),
Arc::new(StoreDelRecordProcessor),
])
.unwrap(),
..Processors::default()
Expand Down
4 changes: 2 additions & 2 deletions crates/torii/grpc/src/server/tests/entities_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ async fn test_entities_queries() {
Arc::clone(&provider),
Processors {
event: generate_event_processors_map(vec![
Box::new(RegisterModelProcessor),
Box::new(StoreSetRecordProcessor),
Arc::new(RegisterModelProcessor),
Arc::new(StoreSetRecordProcessor),
])
.unwrap(),
..Processors::default()
Expand Down

0 comments on commit ff2d7a3

Please sign in to comment.