mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 01:15:43 +03:00
Fix unit tests for TestPrettyPrintBare
This commit is contained in:
@@ -173,7 +173,7 @@ func testPrettyPrint(pretty string, prettyFmt bool, t *testing.T) {
|
||||
|
||||
expected, _ := json.MarshalIndent(r, "", " ")
|
||||
if prettyFmt {
|
||||
expected += "\n"
|
||||
expected = append(expected, "\n"...)
|
||||
}
|
||||
actual, err := ioutil.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user