A few of our tests in Azle and Kybra ensure that not calling accept_message
in inspect_message
rejects immediately. Some of these tests now take a very long time to complete and/or timeout, and when done output something like this:
error Error: Server returned an error:
Code: 400 (Bad Request)
Body: Specified ingress_expiry not within expected range:
Minimum allowed expiry: 2023-06-30 22:30:57.662984345 UTC
Maximum allowed expiry: 2023-06-30 22:36:27.662984345 UTC
Provided expiry: 2023-06-30 22:30:24.157 UTC
Local replica time: 2023-06-30 22:30:57.662986800 UTC
or
error Error: Request timed out after 300000 msec:
Request ID: f35fc4d4ab551da8a3c119c7e7ed0f0ed9ccb16ba5b39cc790f395b8006cbe82
Request status: unknown
at /home/lastmjs/development/kybra/examples/inspect_message/test/node_modules/@dfinity/agent/lib/cjs/polling/strategy.js:72:19
at /home/lastmjs/development/kybra/examples/inspect_message/test/node_modules/@dfinity/agent/lib/cjs/polling/strategy.js:101:19
at async pollForResponse (/home/lastmjs/development/kybra/examples/inspect_message/test/node_modules/@dfinity/agent/lib/cjs/polling/index.js:62:13)
at async caller (/home/lastmjs/development/kybra/examples/inspect_message/test/node_modules/@dfinity/agent/lib/cjs/actor.js:190:35)
at async Proxy.<anonymous> (/home/lastmjs/development/kybra/examples/inspect_message/test/node_modules/azle/test/index.ts:177:40)
at async Object.test (/home/lastmjs/development/kybra/examples/inspect_message/test/node_modules/azle/examples/inspect_message/test/tests.ts:29:36)
at async runTests (/home/lastmjs/development/kybra/examples/inspect_message/test/node_modules/azle/test/index.ts:67:23)
I wonder if this is a regression in the replica, I would expect something more like an immediate Code: 403 (Forbidden)