repo: fix test chocking on randomized element in repo.ListRefs()

Michael Muré created

Change summary

repository/repo_testing.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

repository/repo_testing.go 🔗

@@ -152,7 +152,7 @@ func RepoTest(t *testing.T, creator RepoCreator, cleaner RepoCleaner) {
 
 		ls, err = repo.ListRefs("refs/bugs")
 		require.NoError(t, err)
-		assert.Equal(t, []string{"refs/bugs/ref1", "refs/bugs/ref2"}, ls)
+		assert.ElementsMatch(t, []string{"refs/bugs/ref1", "refs/bugs/ref2"}, ls)
 
 		commits, err := repo.ListCommits("refs/bugs/ref2")
 		require.NoError(t, err)