We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 637f360 commit db62c35Copy full SHA for db62c35
install/installer/pkg/common/customize_test.go
@@ -5,6 +5,7 @@ package common_test
5
6
import (
7
"reflect"
8
+ "sort"
9
"testing"
10
11
"github.com/gitpod-io/gitpod/installer/pkg/common"
@@ -520,6 +521,13 @@ func TestCustomizeEnvvar(t *testing.T) {
520
521
522
result := common.CustomizeEnvvar(ctx, testCase.Component, testCase.ExistingEnnvars)
523
524
+ sort.Slice(result, func(a, b int) bool {
525
+ return result[a].Name < result[b].Name
526
+ })
527
+ sort.Slice(testCase.Expect, func(a, b int) bool {
528
529
530
+
531
if !reflect.DeepEqual(testCase.Expect, result) {
532
t.Errorf("expected %v but got %v", testCase.Expect, result)
533
}
0 commit comments