Skip to content

Commit

Permalink
test: fix integration test in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexD10S committed Jun 10, 2024
1 parent 033d168 commit ec0b61f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/pop-contracts/tests/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,15 @@ fn test_contract_build() -> std::result::Result<(), Error> {

let formatted_result =
build_smart_contract(&Some(temp_contract_dir.path().join("test_contract")), true)?;
assert!(formatted_result.contains("The contract was built in \u{1b}[1mRELEASE\u{1b}[0m mode"));
assert!(formatted_result.contains("RELEASE"));

verify_build_files(temp_contract_dir)?;

let temp_debug_contract_dir = setup_test_environment()?;
// Test building in debug mode
let formatted_result_debug_mode =
build_smart_contract(&Some(temp_debug_contract_dir.path().join("test_contract")), false)?;
assert!(formatted_result_debug_mode
.contains("The contract was built in \u{1b}[1mDEBUG\u{1b}[0m mode"));
assert!(formatted_result_debug_mode.contains("DEBUG"));

verify_build_files(temp_debug_contract_dir)?;

Expand Down

0 comments on commit ec0b61f

Please sign in to comment.