Skip to content

Commit

Permalink
Test unset_debug_handler in integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Apr 24, 2023
1 parent dd9bb47 commit 004e5d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contracts/cyberpunk/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ fn debug_works() {

let msg = ExecuteMsg::Debug {};
let _res: Response = execute(&mut deps, mock_env(), mock_info("caller", &[]), msg).unwrap();

eprintln!("Unsetting debug handler. From here nothing is printed anymore.");
deps.unset_debug_handler();

let msg = ExecuteMsg::Debug {};
let _res: Response = execute(&mut deps, mock_env(), mock_info("caller", &[]), msg).unwrap();
}

#[test]
Expand Down

0 comments on commit 004e5d6

Please sign in to comment.