Skip to content

Commit

Permalink
Merge pull request #5455 from stormqueen1990/fix/cmsecretargs-flaky-test
Browse files Browse the repository at this point in the history
fix: flaky ConfigMap/Secret args tests
  • Loading branch information
k8s-ci-robot committed Nov 20, 2023
2 parents fdf8f44 + 9b54286 commit 4239409
Showing 1 changed file with 2 additions and 3 deletions.
@@ -1,15 +1,14 @@
// Copyright 2019 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0

package util_test
package util

import (
"reflect"
"testing"

"github.com/stretchr/testify/require"
"sigs.k8s.io/kustomize/api/types"
. "sigs.k8s.io/kustomize/kustomize/v5/commands/internal/util"
"sigs.k8s.io/kustomize/kyaml/filesys"
)

Expand Down Expand Up @@ -349,7 +348,7 @@ func TestUpdateLiteralSources(t *testing.T) {
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
tc.wantErr(t, UpdateLiteralSources(tc.args, tc.flags))
require.Equal(t, tc.expectedArgs.LiteralSources, tc.args.LiteralSources)
require.ElementsMatch(t, tc.expectedArgs.LiteralSources, tc.args.LiteralSources)
})
}
}

0 comments on commit 4239409

Please sign in to comment.