From 9ca70f4c789b5c70a963f935055190197a26b877 Mon Sep 17 00:00:00 2001 From: raix Date: Sat, 14 Sep 2019 17:52:34 +0200 Subject: [PATCH] fix(test): skip adapter "pause" test on windows --- src/tests/adapter.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tests/adapter.test.ts b/src/tests/adapter.test.ts index 57a5450..bab7dfe 100644 --- a/src/tests/adapter.test.ts +++ b/src/tests/adapter.test.ts @@ -9,6 +9,7 @@ import * as fs from 'fs'; import {DebugClient} from 'vscode-debugadapter-testsupport'; import {DebugProtocol} from 'vscode-debugprotocol'; import { Subject } from 'await-notify'; +import { platform } from 'os'; describe('Perl debug Adapter', () => { @@ -153,7 +154,7 @@ describe('Perl debug Adapter', () => { describe('pause', () => { - it('should be able to pause programs', async () => { + (platform() === "win32" ? it.skip : it)('should be able to pause programs', async () => { const PROGRAM = Path.join(DATA_ROOT, FILE_LONG_RUNNING_PL); // NOTE(bh): This test is probably expected to fail when test @@ -195,7 +196,7 @@ describe('Perl debug Adapter', () => { 'must have gone at least twice through the loop' ); - }); + }, 10000); }); describe('setFunctionBreakpoints', () => {