Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/genericosv: update tests to avoid racing
Recently, sorting of modules was introduced in ToReport() to produce deterministic results. It made a practical assumption that if module affected entries have the same name, their ranges will be different and start different. But some test files have exactly the same version. It seems they have different packages, so we extend the sorting based on package names. Change-Id: I8972d4fe8c2cc64ab37489bbf4d2a469adb77004 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/530375 Reviewed-by: Tatiana Bradley <tatianabradley@google.com> Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
- Loading branch information