Skip to content

Commit

Permalink
hotfix: fix the arguments of unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chansuke committed Oct 14, 2023
1 parent 18ba44d commit 171d984
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/resmap/reswrangler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ func TestAbsorbAll(t *testing.T) {
}
expected := rmF.FromResource(r)
w := makeMap1(t)
assert.NoError(t, w.AbsorbAll(makeMap2(types.BehaviorMerge, t)))
assert.NoError(t, w.AbsorbAll(makeMap2(t, types.BehaviorMerge)))
expected.RemoveBuildAnnotations()
w.RemoveBuildAnnotations()
assert.NoError(t, expected.ErrorIfNotEqualLists(w))
Expand All @@ -899,12 +899,12 @@ func TestAbsorbAll(t *testing.T) {
assert.NoError(t, w.ErrorIfNotEqualLists(makeMap1(t)))

w = makeMap1(t)
w2 := makeMap2(types.BehaviorReplace, t)
w2 := makeMap2(t, types.BehaviorReplace)
assert.NoError(t, w.AbsorbAll(w2))
w2.RemoveBuildAnnotations()
assert.NoError(t, w2.ErrorIfNotEqualLists(w))
w = makeMap1(t)
w2 = makeMap2(types.BehaviorUnspecified, t)
w2 = makeMap2(t, types.BehaviorUnspecified)
err = w.AbsorbAll(w2)
assert.Error(t, err)
assert.True(
Expand Down

0 comments on commit 171d984

Please sign in to comment.