From 10aeaaa3c3251a1ad15fb594bdcfe3c22e820eb5 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Tue, 20 Sep 2022 13:22:24 -0700 Subject: [PATCH] test(samples): disable samples tests for this repository (#440) Fixes #430. --- .../snippets/test/containerAnalysis.test.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/container-analysis/snippets/test/containerAnalysis.test.js b/container-analysis/snippets/test/containerAnalysis.test.js index 56fd62134f..fc5c04e86c 100644 --- a/container-analysis/snippets/test/containerAnalysis.test.js +++ b/container-analysis/snippets/test/containerAnalysis.test.js @@ -41,7 +41,7 @@ let projectId; let formattedParent; let formattedNoteName; -describe('Note tests', () => { +describe.skip('Note tests', () => { before(async () => { // define projectId and related vars projectId = await client.getProjectId(); @@ -236,19 +236,17 @@ describe('Note tests', () => { ); assert.include(output, 'Occurrence deleted:'); }); - it('should delete note', function () { - this.retries(3); + + it('should delete note', () => { const output = execSync(`node deleteNote.js "${projectId}" "${noteId}" `); assert.include(output, `Note ${formattedNoteName} deleted.`); // Sometimes the delete note test is failing with the error: // Error: 5 NOT_FOUND: note with ID "test-note-${uuid}" for project // ${projectId} does not exist. - // Attempting to work around this issue by retrying a few times. - // DO NOT MERGE. If this works, we should submit an upstream bug. }); }); -describe('polling', () => { +describe.skip('polling', () => { before(async () => { // define project id and related vars projectId = await client.getProjectId(); @@ -303,7 +301,7 @@ describe('polling', () => { }); }); -describe('pubsub', () => { +describe.skip('pubsub', () => { before(async () => { // define project id and related vars projectId = await client.getProjectId();