Skip to content

Commit cfaadf2

Browse files
Improve integration tests for CI Visibility (#2963)
1 parent 0c34f6b commit cfaadf2

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

integration-tests/cucumber/cucumber.spec.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ versions.forEach(version => {
6363
envVars = isAgentless ? getCiVisAgentlessConfig(receiver.port) : getCiVisEvpProxyConfig(receiver.port)
6464
})
6565
it('can run and report tests', (done) => {
66-
receiver.gatherPayloads(({ url }) => url.endsWith('/api/v2/citestcycle'), 5000).then((payloads) => {
66+
receiver.gatherPayloadsMaxTimeout(({ url }) => url.endsWith('/api/v2/citestcycle'), payloads => {
6767
const events = payloads.flatMap(({ payload }) => payload.events)
6868

6969
const testSessionEvent = events.find(event => event.type === 'test_session_end')
@@ -151,9 +151,7 @@ versions.forEach(version => {
151151
assert.equal(stepEvent.content.name, 'cucumber.step')
152152
assert.property(stepEvent.content.meta, 'cucumber.step')
153153
})
154-
155-
done()
156-
}).catch(done)
154+
}, 5000).then(() => done()).catch(done)
157155

158156
childProcess = exec(
159157
runTestsCommand,

integration-tests/cypress/cypress.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const versions = ['6.7.0', isOldNode ? '11.2.0' : 'latest']
2929
versions.forEach((version) => {
3030
describe(`cypress@${version}`, function () {
3131
this.retries(2)
32-
this.timeout(45000)
32+
this.timeout(60000)
3333
let sandbox, cwd, receiver, childProcess, webAppPort
3434
before(async () => {
3535
sandbox = await createSandbox([`cypress@${version}`], true)

0 commit comments

Comments
 (0)