MCPcopy Create free account
hub / github.com/dfinity/orbit / submit_request_with_expected_trap

Function submit_request_with_expected_trap

tests/integration/src/utils.rs:247–256  ·  view source on GitHub ↗
(
    env: &PocketIc,
    user_id: Principal,
    station_canister_id: CanisterId,
    request_operation_input: RequestOperationInput,
)

Source from the content-addressed store, hash-verified

245}
246
247pub fn submit_request_with_expected_trap(
248 env: &PocketIc,
249 user_id: Principal,
250 station_canister_id: CanisterId,
251 request_operation_input: RequestOperationInput,
252) -> String {
253 submit_request_raw(env, user_id, station_canister_id, request_operation_input)
254 .unwrap_err()
255 .reject_message
256}
257
258pub fn wait_for_request(
259 env: &PocketIc,

Callers 1

Calls 1

submit_request_rawFunction · 0.85

Tested by 1