Skip to content

Commit

Permalink
allow test for NEXT_PUBLIC_W3UP_LAUNCH_LIMITED_AVAILABILITY_START to …
Browse files Browse the repository at this point in the history
…take 1min
  • Loading branch information
gobengo committed Nov 13, 2023
1 parent a519a90 commit 7320739
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/api/test/user.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7320739

Please sign in to comment.