Skip to content

Commit 0625d3b

Browse files
authored
Merge pull request github#16374 from github/repo-sync
repo sync
2 parents 964c509 + 8362602 commit 0625d3b

33 files changed

+928
-232
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,16 @@ jobs:
140140
NODE_ENV: test
141141
run: ./script/warm-before-tests.mjs
142142

143+
- name: Start production-like server in the background
144+
if: ${{ matrix.test-group == 'rendering' || matrix.test-group == 'routing' || matrix.test-group == 'content' }}
145+
env:
146+
NODE_ENV: test
147+
PORT: 4000
148+
run: |
149+
node server.mjs &
150+
sleep 3
151+
curl --retry-connrefused --retry 5 -I --fail http://localhost:4000/healthz
152+
143153
- name: Run tests
144154
env:
145155
DIFF_FILE: get_diff_files.txt

middleware/rate-limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import statsd from '../lib/statsd.js'
33

44
const EXPIRES_IN_AS_SECONDS = 60
55

6-
const MAX = process.env.RATE_LIMIT_MAX ? parseInt(process.env.RATE_LIMIT_MAX, 10) : 1000
6+
const MAX = process.env.RATE_LIMIT_MAX ? parseInt(process.env.RATE_LIMIT_MAX, 10) : 10000
77
if (isNaN(MAX)) {
88
throw new Error(`process.env.RATE_LIMIT_MAX (${process.env.RATE_LIMIT_MAX}) not a number`)
99
}

0 commit comments

Comments
 (0)