Update unit test to test string retunred for different order

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
pull/6512/head
Martin Hickey 6 years ago
parent 83cc2cd63c
commit 45bdf41042

@ -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")
}

Loading…
Cancel
Save