+ it('Should correctly retry on 429 error', async function () {
+ this.timeout(25000)
+
+ const mock = new Mock429()
+ const port = await mock.initialize()
+
+ const before = new Date().getTime()
+ await doRequest('http://localhost:' + port)
+
+ expect(new Date().getTime() - before).to.be.greaterThan(2000)
+
+ await mock.terminate()
+ })
+