Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Jan 29, 2025
1 parent 3ac6108 commit e7a1b4b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/torii/indexer/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,11 @@ async fn test_load_from_remote_del(sequencer: &RunnerCtx) {
assert_eq!(count_table("ns-Position", &pool).await, 0);
assert_eq!(count_table("ns-Moves", &pool).await, 0);

// our entity model relation should be deleted
assert_eq!(count_table("entity_model", &pool).await, 0);
// our entity model relations should be deleted
// the only one left is the one for MockToken
assert_eq!(count_table("entity_model", &pool).await, 1);
// our entity should be deleted. since we dont have any more models
assert_eq!(count_table("entities", &pool).await, 0);
assert_eq!(count_table("entities", &pool).await, 1);

// TODO: check how we can have a test that is more chronological with Torii re-syncing
// to ensure we can test intermediate states.
Expand Down

0 comments on commit e7a1b4b

Please sign in to comment.