From df0100103f1e7fecd489422fdd164023cbc30bd2 Mon Sep 17 00:00:00 2001 From: Matheus Alcantara Date: Mon, 11 Oct 2021 09:05:04 -0300 Subject: [PATCH] tests: fix coverage and e2e tests Fix coverage tests cloning the submodule with examples data to use on tests and update the expected vulnerabilities from npm tests. Signed-off-by: Matheus Alcantara --- .github/workflows/coverage.yml | 2 ++ e2e/scan_languages/scan_languages_test.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index f24c18b28..4e347eace 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -21,6 +21,8 @@ jobs: if: "!contains(github.event.head_commit.message, '[skip ci]')" steps: - uses: actions/checkout@v2 + with: + submodules: true - uses: actions/setup-go@v2 with: go-version: 1.17 diff --git a/e2e/scan_languages/scan_languages_test.go b/e2e/scan_languages/scan_languages_test.go index 57ba30911..59f273b19 100644 --- a/e2e/scan_languages/scan_languages_test.go +++ b/e2e/scan_languages/scan_languages_test.go @@ -114,7 +114,7 @@ func TestHorusecCLI(t *testing.T) { { name: "JavascriptNPM", target: filepath.Join("javascript", "example1"), - vulnerabilies: 31, + vulnerabilies: 29, }, { name: "JavascriptYarn",