Skip to content

Commit 7ca48f8

Browse files
committed
Ugh cypress changed their exec result format.
1 parent 7c3c59c commit 7ca48f8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/cypress/e2e/api/Streams.cy.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ describe('Streams', () => {
2424

2525
// Create a custom cert pair
2626
cy.exec('mkcert -cert-file=/test/cypress/fixtures/website1.pem -key-file=/test/cypress/fixtures/website1.key.pem website1.example.com').then((result) => {
27-
expect(result.code).to.eq(0);
27+
expect(result.exitCode).to.eq(0);
2828
// Install CA
2929
cy.exec('mkcert -install').then((result) => {
30-
expect(result.code).to.eq(0);
30+
expect(result.exitCode).to.eq(0);
3131
});
3232
});
3333

@@ -56,7 +56,7 @@ describe('Streams', () => {
5656
expect(data).to.have.property('udp_forwarding', false);
5757

5858
cy.exec('curl --noproxy -- http://website1.example.com:1500').then((result) => {
59-
expect(result.code).to.eq(0);
59+
expect(result.exitCode).to.eq(0);
6060
expect(result.stdout).to.contain('yay it works');
6161
});
6262
});
@@ -107,7 +107,7 @@ describe('Streams', () => {
107107
expect(data).to.have.property('udp_forwarding', true);
108108

109109
cy.exec('curl --noproxy -- http://website1.example.com:1502').then((result) => {
110-
expect(result.code).to.eq(0);
110+
expect(result.exitCode).to.eq(0);
111111
expect(result.stdout).to.contain('yay it works');
112112
});
113113
});

0 commit comments

Comments
 (0)