From 1e8d6eb283fccd0e82dbc7b8aa01124018db0d2f Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Wed, 11 May 2016 15:20:57 -0700 Subject: [PATCH] Fix unit tests for TestPrettyPrintBare --- command/agent/http_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/http_test.go b/command/agent/http_test.go index 4ccbf03c9..14fbd085f 100644 --- a/command/agent/http_test.go +++ b/command/agent/http_test.go @@ -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 {