• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Info updated!

digidem / rpc-reflector / 25170522450 / 2
98%
main: 98%

Build:
DEFAULT BRANCH: main
Ran 30 Apr 2026 02:17PM UTC
Files 10
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Apr 2026 02:17PM UTC coverage: 98.032% (+0.03%) from 98.003%
25170522450.2

push

github

web-flow
fix: createClient.close() should reject pending and future calls (#29)

* fix: createClient.close() should reject pending and future calls

Calling `createClient.close(client)` previously only detached the message
listener. Pending RPC entries remained in the `pending` Map until each
hit its `timeout` (default 5000 ms), and subsequent calls on the same
proxy still posted a request that would also eventually time out.

This change makes `close()`:
1. Reject every entry in `pending` immediately with `Error('Channel closed')`.
2. Set a `closed` flag that the proxy `apply` trap checks first; closed
   clients reject calls synchronously without an IPC round trip.

* test: move in-flight close rejection test to e2e

Adds a `slowMethod` to the e2e fixture API and asserts that
`createClient.close(client)` rejects an in-flight request through the
real client/server round trip with `Error('Channel closed')` rather
than waiting for the per-call timeout. Removes the equivalent unit
test from `close.test.js` since the e2e variant now covers it end to
end.

254 of 267 branches covered (95.13%)

Branch coverage included in aggregate %.

1091 of 1105 relevant lines covered (98.73%)

109.55 hits per line

Source Files on job 25170522450.2
  • Tree
  • List 10
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 25170522450
  • cffb9a5b on github
  • Prev Job for on main (#16911839847.1)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc