Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
slices: don't modify input slices in test
In Go 1.22, slices.CompactFunc will clear the slice elements that got discarded. This makes TestSortedUniqueFunc fail if it is run in succession to other tests modifying the input slice. Avoid this case by not modifying the input slice in the test case but make a copy for the sake of the test. Signed-off-by: Tobias Klauser <tobias@cilium.io>
- Loading branch information