Stop sorting downward api file lines

This commit is contained in:
Jordan Liggitt
2018-07-09 15:44:03 -04:00
parent f70410959d
commit 3f09fecbe0
4 changed files with 16 additions and 18 deletions

View File

@@ -82,8 +82,9 @@ func TestDownwardAPI(t *testing.T) {
"key3": "value3",
}
annotations := map[string]string{
"a1": "value1",
"a2": "value2",
"a1": "value1",
"a2": "value2",
"multiline": "c\nb\na",
}
testCases := []struct {
name string
@@ -318,8 +319,8 @@ func doVerifyLinesInFile(t *testing.T, volumePath, filename string, expected str
t.Errorf(err.Error())
return
}
actualStr := sortLines(string(data))
expectedStr := sortLines(expected)
actualStr := string(data)
expectedStr := expected
if actualStr != expectedStr {
t.Errorf("Found `%s`, expected `%s`", actualStr, expectedStr)
}