Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 149670b

Browse files
committed
test: run the karma broken compilation test only on linux
1 parent bdc9dae commit 149670b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/angular_devkit/build_angular/test/karma/works_spec_large.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ import { tap } from 'rxjs/operators';
1010
import { host, karmaTargetSpec, runTargetSpec } from '../utils';
1111

1212

13+
// TODO: replace this with an "it()" macro that's reusable globally.
14+
let linuxOnlyIt: typeof it = it;
15+
if (process.platform.startsWith('win')) {
16+
linuxOnlyIt = xit;
17+
}
18+
1319
describe('Karma Builder', () => {
1420
beforeEach(done => host.initialize().toPromise().then(done, done.fail));
1521
afterEach(done => host.restore().toPromise().then(done, done.fail));
@@ -20,7 +26,9 @@ describe('Karma Builder', () => {
2026
).toPromise().then(done, done.fail);
2127
}, 30000);
2228

23-
it('fails with broken compilation', (done) => {
29+
// This test seems to succeed on appveyor but not terminate Karma, leaving the port used
30+
// and killing Chrome after 60s. This causes other tests that use Chrome to fail.
31+
linuxOnlyIt('fails with broken compilation', (done) => {
2432
host.writeMultipleFiles({
2533
'src/app/app.component.spec.ts': '<p> definitely not typescript </p>',
2634
});

0 commit comments

Comments
 (0)