mirror of
https://github.com/helm/helm.git
synced 2026-04-26 08:37:01 -04:00
Fix lint warning
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
This commit is contained in:
parent
6fdd1017ce
commit
d409df87ff
1 changed files with 4 additions and 2 deletions
|
|
@ -395,8 +395,8 @@ func TestMergeValues(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestCoalesceTables(t *testing.T) {
|
||||
is := assert.New(t)
|
||||
t.Run("case 1", func(t *testing.T) {
|
||||
is := assert.New(t)
|
||||
dst := map[string]interface{}{
|
||||
"name": "Ishmael",
|
||||
"address": map[string]interface{}{
|
||||
|
|
@ -449,7 +449,8 @@ func TestCoalesceTables(t *testing.T) {
|
|||
_, ok = dst["hole"]
|
||||
is.False(ok, "The hole should be removed")
|
||||
})
|
||||
t.Run("case 2", func(t *testing.T) {
|
||||
t.Run("case 2", func(_ *testing.T) {
|
||||
is := assert.New(t)
|
||||
dst2 := map[string]interface{}{
|
||||
"name": "Ishmael",
|
||||
"address": map[string]interface{}{
|
||||
|
|
@ -485,6 +486,7 @@ func TestCoalesceTables(t *testing.T) {
|
|||
is.Equal("black", dst2["hole"], "Expected hole string, got %v", dst2["hole"])
|
||||
})
|
||||
t.Run("chart values with nil user value", func(t *testing.T) {
|
||||
is := assert.New(t)
|
||||
dst := map[string]any{
|
||||
"foo": "bar",
|
||||
"baz": nil, // explicit nil from user
|
||||
|
|
|
|||
Loading…
Reference in a new issue