Skip to content

Commit

Permalink
ci: Fix cargo test panic
Browse files Browse the repository at this point in the history
  • Loading branch information
kovipu committed Sep 10, 2024
1 parent 9dad934 commit 74de671
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
- name: Build
run: make build

# - name: Run tests
# env:
# RUST_BACKTRACE: 1
# run: cargo test --verbose
- name: Run tests
env:
RUST_BACKTRACE: 1
run: cargo test --verbose

- name: Run clippy
run: cargo clippy -- -D warnings
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ opt-level = "z"
overflow-checks = true
debug = true
debug-assertions = true
strip = "symbols"
# strip = "symbols"
# panic = "abort"
codegen-units = 1
lto = true
Expand Down
2 changes: 2 additions & 0 deletions contracts/loan_manager/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ mod tests {
// ARRANGE
let e = Env::default();
e.mock_all_auths_allowing_non_root_auth();
e.budget().reset_unlimited();

let admin = Address::generate(&e);
let loan_token_contract_id = e.register_stellar_asset_contract(admin.clone());
Expand Down Expand Up @@ -289,6 +290,7 @@ mod tests {
// ARRANGE
let e = Env::default();
e.mock_all_auths_allowing_non_root_auth();
e.budget().reset_unlimited();
e.ledger().with_mut(|li| {
li.sequence_number = 100_000;
li.min_persistent_entry_ttl = 1_000_000;
Expand Down

0 comments on commit 74de671

Please sign in to comment.