Skip to content

REPLICA · NOT AN EMPLOYER REPO

Integration example

Document one working integration with a runnable example and a printed failure. Tests start red. Edit the service, then run. The preview calls that same process. No wallet, no chain, no employer exam.

BCL-512 · example-service · local replica

The example rail times out. Print that failure. Do not credit. After handleTimeout(), credit once, and leave the failure in the log.

FAIL timeout is printed and does not credit2 failed · 0 passed

Where to look

On timeout before handle, push a log line that contains "timeout", return ok:false and credits 0. After handle, return credits 1 and keep that line.

Client of your service. Same process as the tests.

  1. 01Runexample
  2. 02Timeoutswallowed
  3. 030 creditnot handled
No log yet. POST run.

$ npm test · example-service

  • FAILtimeout is printed and does not creditfirst run {"ok":true,"credits":1,"handled":false,"log":[]}
  • FAILafter the handler, one credit, failure still in the logsecond run {"ok":true,"credits":1,"handled":true,"log":[]}

Seats that use this task

All test tasks