Skip to content

Commit 05a962c

Browse files
authored
CI: temporarily skip integ tests on vscode 1.42 #1573
1 parent e80aef1 commit 05a962c

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

src/integrationTest/sam.test.ts

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,10 @@ describe('SAM Integration Tests', async function () {
337337
})
338338

339339
it('produces an Add Debug Configuration codelens', async function () {
340+
if (vscode.version.startsWith('1.42')) {
341+
this.skip()
342+
}
343+
340344
setTestTimeout(this.test?.fullTitle(), 60000)
341345
const codeLens = await getAddConfigCodeLens(samAppCodeUri)
342346
assert.ok(codeLens)
@@ -362,6 +366,10 @@ describe('SAM Integration Tests', async function () {
362366
})
363367

364368
it('invokes and attaches on debug request (F5)', async function () {
369+
if (vscode.version.startsWith('1.42')) {
370+
this.skip()
371+
}
372+
365373
setTestTimeout(this.test?.fullTitle(), 90000)
366374
// Allow previous sessions to go away.
367375
const noDebugSession: boolean | undefined = await waitUntil(
@@ -370,13 +378,13 @@ describe('SAM Integration Tests', async function () {
370378
)
371379

372380
assert.strictEqual(
373-
noDebugSession,
374-
true,
375-
`unexpected debug session in progress: ${JSON.stringify(
376-
vscode.debug.activeDebugSession,
377-
undefined,
378-
2
379-
)}`
381+
noDebugSession,
382+
true,
383+
`unexpected debug session in progress: ${JSON.stringify(
384+
vscode.debug.activeDebugSession,
385+
undefined,
386+
2
387+
)}`
380388
)
381389

382390
const testConfig = {

src/integrationTest/shared/codelens/samTemplateCodeLensProvider.test.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,26 @@ import { LaunchConfiguration } from '../../../shared/debug/launchConfiguration'
1212
import { API_TARGET_TYPE, TEMPLATE_TARGET_TYPE } from '../../../shared/sam/debugger/awsSamDebugConfiguration'
1313
import * as workspaceUtils from '../../../shared/utilities/workspaceUtils'
1414

15-
describe('SamTemplateCodeLensProvider', async function() {
15+
describe('SamTemplateCodeLensProvider', async function () {
1616
let codeLensProvider: SamTemplateCodeLensProvider = new SamTemplateCodeLensProvider()
1717
let document: vscode.TextDocument
1818
let launchConfig: LaunchConfiguration
1919
let templateUri: vscode.Uri
2020
let mockCancellationToken: vscode.CancellationToken
2121

22-
beforeEach(async function() {
22+
beforeEach(async function () {
2323
codeLensProvider = new SamTemplateCodeLensProvider()
2424
document = (await workspaceUtils.openTextDocument('python3.7-plain-sam-app/template.yaml'))!
2525
templateUri = document.uri
2626
launchConfig = new LaunchConfiguration(document.uri)
2727
mockCancellationToken = mock()
2828
})
2929

30-
it('provides a CodeLens for a file with a new resource', async function() {
30+
it('provides a CodeLens for a file with a new resource', async function () {
31+
if (vscode.version.startsWith('1.42')) {
32+
this.skip()
33+
}
34+
3135
const codeLenses = await codeLensProvider.provideCodeLenses(
3236
document,
3337
instance(mockCancellationToken),
@@ -62,7 +66,7 @@ describe('SamTemplateCodeLensProvider', async function() {
6266
assert.deepStrictEqual(codeLenses, expectedCodeLens)
6367
})
6468

65-
it('provides no code lenses for a file with no resources', async function() {
69+
it('provides no code lenses for a file with no resources', async function () {
6670
const mockSymbolResolver: TemplateSymbolResolver = mock()
6771
when(mockSymbolResolver.getResourcesOfKind('function', anything())).thenResolve([])
6872

0 commit comments

Comments
 (0)