diff --git a/pkg/action/install_test.go b/pkg/action/install_test.go index 5760058be..48551d962 100644 --- a/pkg/action/install_test.go +++ b/pkg/action/install_test.go @@ -23,6 +23,7 @@ import ( "os" "path/filepath" "regexp" + "strings" "testing" "github.com/stretchr/testify/assert" @@ -200,7 +201,10 @@ func TestInstallRelease_WithChartAndDependencyAllNotes(t *testing.T) { rel, err := instAction.cfg.Releases.Get(res.Name, res.Version) is.Equal("with-notes", rel.Name) is.NoError(err) - is.Equal("parent\nchild", rel.Info.Notes) + // test run can return as either 'parent\nchild' or 'child\nparent' + if !strings.Contains(rel.Info.Notes, "parent") && !strings.Contains(rel.Info.Notes, "child") { + t.Fatalf("Expected 'parent\nchild' or 'child\nparent', got '%s'", rel.Info.Notes) + } is.Equal(rel.Info.Description, "Install complete") }