Skip to content

Commit

Permalink
Fix test_revoke_invalid_case
Browse files Browse the repository at this point in the history
  • Loading branch information
SoraSuegami committed Oct 23, 2024
1 parent 6aa8707 commit e9aea87
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/ic_dns_oracle_backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,7 @@ mod test {
}

#[test]
#[should_panic]
fn test_revoke_invalid_case() {
// We create a PocketIC instance consisting of the NNS, II, and one application subnet.
let pic = PocketIcBuilder::new()
Expand Down Expand Up @@ -1167,7 +1168,13 @@ mod test {

// // Now the test canister will receive the http outcall response
// // and reply to the ingress message from the test driver.
assert!(pic.await_call(call_id).is_err());
pic.await_call(call_id);
// match reply {
// WasmResult::Reply(data) => {
// panic!("Unexpected reply {:?}", data);
// }
// WasmResult::Reject(msg) => {}
// };
}

fn private_key_der_to_public_key_hex(private_key: &[u8]) -> String {
Expand Down

0 comments on commit e9aea87

Please sign in to comment.