Skip to content

Commit ccfa703

Browse files
authored
Merge pull request github#18671 from github/repo-sync
repo sync
2 parents f1d4b2a + 9e242ea commit ccfa703

File tree

7 files changed

+2
-351
lines changed

7 files changed

+2
-351
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ concurrency:
2323

2424
jobs:
2525
test:
26-
# Run on self-hosted if the private repo or ubuntu-latest if the public repo
26+
# Run on ubuntu-20.04-xl if the private repo or ubuntu-latest if the public repo
2727
# See pull # 17442 in the private repo for context
28-
runs-on: ${{ fromJSON('["ubuntu-latest", "self-hosted"]')[github.repository == 'github/docs-internal'] }}
28+
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
2929
timeout-minutes: 60
3030
strategy:
3131
fail-fast: false

lib/cookie-settings.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ export default {
22
httpOnly: true, // can't access these cookies through browser JavaScript
33
secure: !['test', 'development'].includes(process.env.NODE_ENV),
44
// requires https protocol
5-
// `secure` doesn't work with supertest at all
65
// http://localhost fails on chrome with secure
76
sameSite: 'lax',
87
// most browsers are "lax" these days,

middleware/handle-errors.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,6 @@ async function logException(error, req) {
3030
}
3131

3232
export default async function handleError(error, req, res, next) {
33-
// When you run tests that use things doing get() requests in
34-
// our supertest handler, if something goes wrong anywhere in the app
35-
// and its middlewares, you get a 500 but the error is never displayed
36-
// anywhere. So this is why we log it additionally.
37-
// Note, not using console.error() because it's arguably handled.
38-
// Some tests might actually expect a 500 error.
39-
4033
const responseDone = res.headersSent || req.aborted
4134

4235
if (req.path.startsWith('/assets') || req.path.startsWith('/_next/static')) {

0 commit comments

Comments
 (0)