Skip to content

Commit

Permalink
fix flaky e2e record passes test (#16043)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuceb authored Apr 19, 2021
1 parent 59d1d84 commit 738193f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/server/test/e2e/7_record_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ describe('e2e record', () => {
`POST /runs/${runId}/instances`,
`POST /instances/${instanceId}/tests`,
`POST /instances/${instanceId}/results`,
'PUT /screenshots/1.png',
'PUT /videos/video.mp4',
'PUT /screenshots/1.png',
`PUT /instances/${instanceId}/stdout`,

// spec 3
Expand All @@ -82,8 +82,8 @@ describe('e2e record', () => {
`POST /runs/${runId}/instances`,
`POST /instances/${instanceId}/tests`,
`POST /instances/${instanceId}/results`,
'PUT /screenshots/1.png',
'PUT /videos/video.mp4',
'PUT /screenshots/1.png',
`PUT /instances/${instanceId}/stdout`,
])

Expand Down
10 changes: 5 additions & 5 deletions packages/server/test/support/helpers/serverStub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,17 @@ const routeHandlers = {
method: 'put',
url: '/videos/:name',
res (req, res) {
return Bluebird.delay(200)
.then(() => {
return res.sendStatus(200)
})
return res.sendStatus(200)
},
},
putScreenshots: {
method: 'put',
url: '/screenshots/:name',
res (req, res) {
return res.sendStatus(200)
return Bluebird.delay(300)
.then(() => {
return res.sendStatus(200)
})
},
},

Expand Down

4 comments on commit 738193f

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 738193f Apr 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/7.2.0/circle-develop-738193f4505be801c35f4a5b4feb452f3f974a64/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 738193f Apr 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AppVeyor has built the win32 ia32 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/7.2.0/appveyor-develop-738193f4505be801c35f4a5b4feb452f3f974a64/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 738193f Apr 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AppVeyor has built the win32 x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/7.2.0/appveyor-develop-738193f4505be801c35f4a5b4feb452f3f974a64/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 738193f Apr 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/7.2.0/circle-develop-738193f4505be801c35f4a5b4feb452f3f974a64/cypress.tgz

Please sign in to comment.