Skip to content

Commit

Permalink
fix: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Aug 9, 2024
1 parent 4ae6ae2 commit 3c2eda9
Show file tree
Hide file tree
Showing 22 changed files with 7 additions and 13,734 deletions.
12 changes: 6 additions & 6 deletions crates/sozo/ops/src/tests/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ENTRYPOINT: &str = "get_player_position";

#[tokio::test]
async fn call_with_bad_address() {
let config = KatanaRunnerConfig::default().with_db_dir("/tmp/test-db");
let config = KatanaRunnerConfig::default().with_db_dir("/tmp/spawn-and-move-db");
let sequencer = KatanaRunner::new_with_config(config).expect("Failed to start runner.");

let world = setup::setup_with_world(&sequencer).await.unwrap();
Expand All @@ -36,7 +36,7 @@ async fn call_with_bad_address() {

#[tokio::test]
async fn call_with_bad_name() {
let config = KatanaRunnerConfig::default().with_db_dir("/tmp/test-db");
let config = KatanaRunnerConfig::default().with_db_dir("/tmp/spawn-and-move-db");
let sequencer = KatanaRunner::new_with_config(config).expect("Failed to start runner.");

let world = setup::setup_with_world(&sequencer).await.unwrap();
Expand All @@ -58,7 +58,7 @@ async fn call_with_bad_name() {

#[tokio::test]
async fn call_with_bad_entrypoint() {
let config = KatanaRunnerConfig::default().with_db_dir("/tmp/test-db");
let config = KatanaRunnerConfig::default().with_db_dir("/tmp/spawn-and-move-db");
let sequencer = KatanaRunner::new_with_config(config).expect("Failed to start runner.");

let world = setup::setup_with_world(&sequencer).await.unwrap();
Expand All @@ -80,7 +80,7 @@ async fn call_with_bad_entrypoint() {

#[tokio::test]
async fn call_with_bad_calldata() {
let config = KatanaRunnerConfig::default().with_db_dir("/tmp/test-db");
let config = KatanaRunnerConfig::default().with_db_dir("/tmp/spawn-and-move-db");
let sequencer = KatanaRunner::new_with_config(config).expect("Failed to start runner.");

let world = setup::setup_with_world(&sequencer).await.unwrap();
Expand All @@ -102,7 +102,7 @@ async fn call_with_bad_calldata() {

#[tokio::test]
async fn call_with_contract_name() {
let config = KatanaRunnerConfig::default().with_db_dir("/tmp/test-db");
let config = KatanaRunnerConfig::default().with_db_dir("/tmp/spawn-and-move-db");
let sequencer = KatanaRunner::new_with_config(config).expect("Failed to start runner.");

let world = setup::setup_with_world(&sequencer).await.unwrap();
Expand All @@ -118,7 +118,7 @@ async fn call_with_contract_name() {

#[tokio::test]
async fn call_with_contract_address() {
let config = KatanaRunnerConfig::default().with_db_dir("/tmp/test-db");
let config = KatanaRunnerConfig::default().with_db_dir("/tmp/spawn-and-move-db");
let sequencer = KatanaRunner::new_with_config(config).expect("Failed to start runner.");

let world = setup::setup_with_world(&sequencer).await.unwrap();
Expand Down
Loading

0 comments on commit 3c2eda9

Please sign in to comment.