Skip to content

Commit f4fc5d9

Browse files
committed
test
1 parent b3786d2 commit f4fc5d9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/zxc-compile-code.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,13 @@ jobs:
138138
run: docker image pull kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72
139139

140140
- name: Setup E2E Tests
141-
if: ${{ inputs.enable-e2e-tests && !cancelled() && !failure() }}
141+
if: ${{ runner.os == 'linux' && inputs.enable-e2e-tests && !cancelled() && !failure() }}
142142
run: |
143143
npm link
144144
./test/e2e/setup-e2e.sh
145145
146146
- name: Run E2E Tests
147-
if: ${{ inputs.enable-e2e-tests && !cancelled() && !failure() }}
147+
if: ${{ runner.os == 'linux' && inputs.enable-e2e-tests && !cancelled() && !failure() }}
148148
run: npm run test-e2e
149149

150150
- name: Upload E2E Logs to GitHub
@@ -165,7 +165,7 @@ jobs:
165165

166166
- name: Publish E2E Coverage Report
167167
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
168-
if: ${{ inputs.enable-e2e-tests && !cancelled() }}
168+
if: ${{ runner.os == 'linux' && inputs.enable-e2e-tests && !cancelled() }}
169169
with:
170170
name: E2E Coverage Report
171171
path: 'coverage/e2e'

test/unit/commands/base.test.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('BaseCommand', () => {
4848
await expect(baseCmd.run('INVALID_PROGRAM')).rejects.toThrowError()
4949
})
5050
it('should succeed during valid program check', async () => {
51-
await expect(baseCmd.run('date')).resolves.not.toBeNull()
52-
}, 10000)
51+
await expect(baseCmd.run('date', true)).resolves.not.toBeNull()
52+
})
5353
})
5454
})

0 commit comments

Comments
 (0)