From bdab29ed0938228d71a43be7bfab1b69e8f1dad7 Mon Sep 17 00:00:00 2001 From: James Payne Date: Sat, 26 Apr 2025 07:39:19 +0100 Subject: [PATCH] Fix tests after child logger was removed Signed-off-by: James Payne --- pkg/chart/v2/util/coalesce_test.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/chart/v2/util/coalesce_test.go b/pkg/chart/v2/util/coalesce_test.go index cfc3a0b14..a3545021c 100644 --- a/pkg/chart/v2/util/coalesce_test.go +++ b/pkg/chart/v2/util/coalesce_test.go @@ -722,7 +722,6 @@ func TestCoalesceValuesWarnings(t *testing.T) { // All warnings should have context as to where the warning is being emitted capturedLogOutput.Filter(capture_handler.RecordLevelMatches(slog.LevelWarn)). AssertThat(t). - HasAttr("chart"). HasAttr("error"). HasAttr("key") @@ -739,7 +738,6 @@ func TestCoalesceValuesWarnings(t *testing.T) { AssertThat(t). MatchesExactly(1). AtLevel(slog.LevelWarn). - HasAttrValueString("chart", "level3"). HasAttrValueString("error", "cannot merge table and non-table values") capturedLogOutput.Filter(capture_handler.RecordMessageMatches("skipping key")). @@ -747,7 +745,6 @@ func TestCoalesceValuesWarnings(t *testing.T) { AssertThat(t). MatchesExactly(1). AtLevel(slog.LevelWarn). - HasAttrValueString("chart", "level3"). HasAttrValueString("error", "cannot merge table and non-table values") // Reset and set the default logger back to its original state @@ -803,7 +800,6 @@ func TestCoalesceValuesTopLevelGlobalsWarningsSrc(t *testing.T) { // All warnings should have context as to where the warning is being emitted capturedLogOutput.Filter(capture_handler.RecordLevelMatches(slog.LevelWarn)). AssertThat(t). - HasAttr("chart"). HasAttr("error"). HasAttr("key") @@ -811,7 +807,6 @@ func TestCoalesceValuesTopLevelGlobalsWarningsSrc(t *testing.T) { AssertThat(t). MatchesExactly(1). AtLevel(slog.LevelWarn). - HasAttrValueString("chart", "level1"). HasAttrValueString("key", "global") // Reset and set the default logger back to its original state