Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Zając committed Oct 3, 2023
1 parent f43c363 commit a53f71b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ dojo.iml
*.db-shm
.DS_Store
.env
data
data
File renamed without changes.
4 changes: 2 additions & 2 deletions crates/dojo-core/src/world_test.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ fn test_entities() {
let mut keys = ArrayTrait::new();
keys.append(0);

// let mut query_keys = ArrayTrait::new();
let mut query_keys = ArrayTrait::new().span();
let keys_layout = array![251].span();
let (keys, values) = world.entities('Foo', 42, Option::None(()), 2, keys_layout);
let (keys, values) = world.entities('Foo', Option::None(()), query_keys, 2, keys_layout);
assert(keys.len() == 1, 'No keys found for any!');

// query_keys.append(0x1337);
Expand Down
8 changes: 4 additions & 4 deletions crates/dojo-erc/src/tests/erc20_tests.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ fn test__approve_to_zero() {
//

#[test]
#[available_gas(30000000)]
#[available_gas(25000000)]
fn test_transfer() {
let mut state = setup();
testing::set_caller_address(OWNER());
Expand All @@ -192,7 +192,7 @@ fn test_transfer() {
}

#[test]
#[available_gas(30000000)]
#[available_gas(25000000)]
fn test__transfer() {
let mut state = setup();

Expand Down Expand Up @@ -236,7 +236,7 @@ fn test__transfer_to_zero() {
//

#[test]
#[available_gas(40000000)]
#[available_gas(30000000)]
fn test_transfer_from() {
let mut state = setup();
testing::set_caller_address(OWNER());
Expand All @@ -256,7 +256,7 @@ fn test_transfer_from() {
}

#[test]
#[available_gas(30000000)]
#[available_gas(25000000)]
fn test_transfer_from_doesnt_consume_infinite_allowance() {
let mut state = setup();
testing::set_caller_address(OWNER());
Expand Down

0 comments on commit a53f71b

Please sign in to comment.