You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expect(responses[0].text).to.include('Response from back-end!');
29
+
// Rate limit exceeds but request is queued, since the window size is 3 seconds the request still fails
30
+
expect(responses[1].status).to.eql(429);
31
+
// Rate limit exceeds but request is queued, since the window size is 3 seconds and delay induced is 1.6*2 = 3.2 seconds the request is completed successfully
32
+
expect(responses[2].status).to.eql(200);expect(responses[0].text).to.include('Response from back-end!');
33
+
done();
34
+
}).then(requester.close());
35
+
},50);
36
+
});
37
+
});
38
+
12
39
/*
13
40
* Test the proxy
14
41
*/
@@ -22,7 +49,7 @@ describe('reli-proxy', function module1() {
22
49
expect(res.text).to.include('Response from back-end!');
0 commit comments