Skip to content

Commit

Permalink
Merge pull request #92 from snyk/dotkas/is-tests-broken
Browse files Browse the repository at this point in the history
Are tests working? 😬
  • Loading branch information
dotkas authored Nov 30, 2023
2 parents 5bb8e54 + 0c9269c commit 8ba5c2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,4 @@ Wait until the Docker has loaded, it can take a while. Check the progress with `

You'll have a ton of trouble if you default to building your Docker images as `linux/amd64`. At least I had. Ensure you
do not have a env variable like `DOCKER_DEFAULT_PLATFORM=linux/amd64` enabled when pulling and/or running the image.

Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void shouldTestPipPackage() throws Exception {
TestResult result = scanner.scan(fileLayoutInfo, repoPath);
assertFalse(result.success);
assertEquals(1, result.dependencyCount);
assertEquals(3, result.issues.vulnerabilities.size());
assertEquals(5, result.issues.vulnerabilities.size());
assertEquals("pip", result.packageManager);
assertEquals(org, result.organisation.id);
assertEquals("https://snyk.io/vuln/pip%3Aurllib3%401.25.7", result.packageDetailsURL);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ void testScanPythonItem_withVulns() throws Exception {
TestResult tr = testResultCaptor.getValue();
assertFalse(tr.success);
assertEquals(1, tr.dependencyCount);
assertEquals(3, tr.issues.vulnerabilities.size());
assertEquals(5, tr.issues.vulnerabilities.size());
assertEquals("pip", tr.packageManager);
assertEquals(testSetup.org, tr.organisation.id);

Expand Down

0 comments on commit 8ba5c2c

Please sign in to comment.