From 7ca48f876bca9faa26af349b6f4bb3e3930bbef0 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Tue, 27 Jan 2026 11:55:54 +1000 Subject: [PATCH] Ugh cypress changed their exec result format. --- test/cypress/e2e/api/Streams.cy.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/cypress/e2e/api/Streams.cy.js b/test/cypress/e2e/api/Streams.cy.js index 5e5fc763..923b1b41 100644 --- a/test/cypress/e2e/api/Streams.cy.js +++ b/test/cypress/e2e/api/Streams.cy.js @@ -24,10 +24,10 @@ describe('Streams', () => { // Create a custom cert pair cy.exec('mkcert -cert-file=/test/cypress/fixtures/website1.pem -key-file=/test/cypress/fixtures/website1.key.pem website1.example.com').then((result) => { - expect(result.code).to.eq(0); + expect(result.exitCode).to.eq(0); // Install CA cy.exec('mkcert -install').then((result) => { - expect(result.code).to.eq(0); + expect(result.exitCode).to.eq(0); }); }); @@ -56,7 +56,7 @@ describe('Streams', () => { expect(data).to.have.property('udp_forwarding', false); cy.exec('curl --noproxy -- http://website1.example.com:1500').then((result) => { - expect(result.code).to.eq(0); + expect(result.exitCode).to.eq(0); expect(result.stdout).to.contain('yay it works'); }); }); @@ -107,7 +107,7 @@ describe('Streams', () => { expect(data).to.have.property('udp_forwarding', true); cy.exec('curl --noproxy -- http://website1.example.com:1502').then((result) => { - expect(result.code).to.eq(0); + expect(result.exitCode).to.eq(0); expect(result.stdout).to.contain('yay it works'); }); });