kubescape / storage

Apache License 2.0
1 stars 6 forks source link

The returned order in the list is not always the same #44

Closed rcohencyberarmor closed 11 months ago

rcohencyberarmor commented 11 months ago

PR Type:

Bug fix


PR Description:

This PR addresses an issue in the unit test 'TestVulnSummaryStorageImpl_GetList' where the returned order in the list was not always the same, causing the test to fail intermittently. The fix involves changing the assertion to check for deep equality of list items regardless of their order.


PR Main Files Walkthrough:

pkg/registry/file/vulnarabilitysummarystoarge_test.go: Modified the assertion in 'TestVulnSummaryStorageImpl_GetList' test to check for deep equality of list items regardless of their order. This is done by iterating over the items and checking if each item exists in the expected list, instead of directly comparing the two lists.


User Description:

Sorry, we do not accept changes directly against this repository. Please see CONTRIBUTING.md for information on where and how to contribute instead.

codiumai-pr-agent[bot] commented 11 months ago

PR Analysis

How to use

To invoke the PR-Agent, add a comment using one of the following commands: /review [-i]: Request a review of your Pull Request. For an incremental review, which only considers changes since the last review, include the '-i' option. /describe: Modify the PR title and description based on the contents of the PR. /improve [--extended]: Suggest improvements to the code in the PR. Extended mode employs several calls, and provides a more thorough feedback. /ask \<QUESTION>: Pose a question about the PR. /update_changelog: Update the changelog based on the PR's contents.

To edit any configuration parameter from configuration.toml, add --config_path=new_value For example: /review --pr_reviewer.extra_instructions="focus on the file: ..." To list the possible configuration parameters, use the /config command.

github-actions[bot] commented 11 months ago

Summary:

github-actions[bot] commented 11 months ago

Summary: