fix(rate limits): Updated e2e tests for post-fork servers

This commit is contained in:
Chris Troutner
2020-11-11 18:39:57 -08:00
parent e070409a95
commit 4c020240e1
4 changed files with 14 additions and 10 deletions
@@ -13,12 +13,13 @@ const PRO_PASS = "testpassword"
const BCHJS = require("../../../src/bch-js")
const bchjs = new BCHJS({
// restURL: `https://api.fullstack.cash/v3/`,
restURL: `http://localhost:3000/v3/`,
// restURL: `https://bchn.fullstack.cash/v3/`,
restURL: `https://abc.fullstack.cash/v3/`,
// restURL: `http://localhost:3000/v3/`,
authPass: PRO_PASS
})
describe("#full node rate limits", () => {
describe("#Basic Authentication rate limits", () => {
it("should allow more than 20 RPM to full node", async () => {
for (let i = 0; i < 22; i++) {
const result = await bchjs.Control.getNetworkInfo()