fix: restore ephemeral_account and sweep_controller tests for CI - #450
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Fixes the failing
Test ContractsCI by restoring the corruptedephemeral_accounttest suite and aligning the contract test environments with the standalone network passphrase check enforced byinitialize(require_network).Changes
src/test.rs(was corrupted: unclosed delimiters, undefined variables, mangled assertions); added atest_env()helper that callsenv.ledger().set_network_id(...)with the standalone network id soinitializepassesrequire_network.passphrase::standalone_network_id()helper; fixed doc-comment style.initializetest calls to the 6-arg signature, fixed event-filter assertions and error-code expectations, routedclaimthroughsweep_claim, wrapped migration tests inenv.as_contract, and removed unused imports.Verification
All CI-equivalent checks pass locally (rust 1.92):
cargo test— ephemeral_account 20/20, sweep_controller 39/39 (4 unrelated integration tests remain ignored with TODO), reserve_contract 20/20cargo fmt -- --check— clean across all contract cratescargo clippy -- -D warnings(CI-equivalent, lib) — clean