mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
Fixing unit tests
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user