From 7320739de2e98ab3ee94e34b223be8f00e4bb737 Mon Sep 17 00:00:00 2001 From: bengo <171782+gobengo@users.noreply.github.com> Date: Mon, 13 Nov 2023 10:13:59 -0800 Subject: [PATCH] allow test for NEXT_PUBLIC_W3UP_LAUNCH_LIMITED_AVAILABILITY_START to take 1min --- packages/api/test/user.spec.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/api/test/user.spec.js b/packages/api/test/user.spec.js index fe55764dd7..2038ba3598 100644 --- a/packages/api/test/user.spec.js +++ b/packages/api/test/user.spec.js @@ -569,7 +569,12 @@ describe('userLoginPost', function () { assert.deepEqual(contact2.name, githubUserOauth2.userInfo.name, 'customer contact has name from userLoginPost request body after second login') }) - it('should not create new users once date is after NEXT_PUBLIC_W3UP_LAUNCH_LIMITED_AVAILABILITY_START', async () => { + it('should not create new users once date is after NEXT_PUBLIC_W3UP_LAUNCH_LIMITED_AVAILABILITY_START', async function () { + if ( ! process.env.CI_DONT_ACCOMODATE_LONG_TESTS) { + // this times out on CI in the default 5 seconds. + // It's not surprising this may take some time, since it relies on creating a whole new miniflare server. + this.timeout(60 * 1000) + } /** * we're going to create a server with the appropriate configuration using miniflare, * boot the server, then request POST /user/login and assert about the response.