(responder)
| 74 | }); |
| 75 | |
| 76 | function stubFetch(responder) { |
| 77 | const original = global.fetch; |
| 78 | global.fetch = async (url, init) => responder(url, init); |
| 79 | return () => { global.fetch = original; }; |
| 80 | } |
| 81 | |
| 82 | it('success resets backoff and schedules next attempt ~24h away', async () => { |
| 83 | const sb = freshRequire('../src/gep/validator/stakeBootstrap'); |
no outgoing calls
no test coverage detected