Fixing unit tests

This commit is contained in:
Chris Troutner
2019-10-12 15:03:34 -07:00
parent dd7841fd40
commit 9ab0e8c52a
+2 -2
View File
@@ -64,7 +64,7 @@ describe("#route-ratelimits", () => {
req.path = "/control/getNetworkInfo"
req.method = "GET"
for (let i = 0; i < 25; i++) {
for (let i = 0; i < 35; i++) {
next.reset() // reset the stubbed next() function.
await routeRateLimit(req, res, next)
@@ -134,7 +134,7 @@ describe("#route-ratelimits", () => {
// Prepare the authorization header
//req.headers.authorization = generateAuthHeader("BITBOX")
for (let i = 0; i < 300; i++) {
for (let i = 0; i < 400; i++) {
next.reset() // reset the stubbed next() function.
await routeRateLimit(req, res, next)