From 2c3c05758dff9775eb62ca8540636c1de4eaae55 Mon Sep 17 00:00:00 2001 From: Chris Grindstaff Date: Wed, 13 Nov 2024 14:40:56 -0500 Subject: [PATCH] test: sort exporters for deterministic tests --- pkg/conf/conf.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/conf/conf.go b/pkg/conf/conf.go index 59ae90687..4bcdad51b 100644 --- a/pkg/conf/conf.go +++ b/pkg/conf/conf.go @@ -17,6 +17,7 @@ import ( "os" "path/filepath" "regexp" + "slices" "sort" "strconv" "strings" @@ -473,6 +474,9 @@ func GetUniqueExporters(exporterNames []string) []string { } resultExporters = append(resultExporters, value...) } + + slices.Sort(resultExporters) + return resultExporters }