From 039d9db5a39bbea6a61be17fdc67de861c554ec8 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 20 Jan 2015 23:30:38 +0900 Subject: [PATCH] integration: Make multiline string a bit readable --- integration-tests/nghttpx_test.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/integration-tests/nghttpx_test.go b/integration-tests/nghttpx_test.go index f3d90ce6..7d75d6f8 100644 --- a/integration-tests/nghttpx_test.go +++ b/integration-tests/nghttpx_test.go @@ -54,7 +54,13 @@ func TestH1H1MultipleRequestCL(t *testing.T) { }) defer st.Close() - if _, err := io.WriteString(st.conn, fmt.Sprintf("GET / HTTP/1.1\r\nHost: %v\r\nTest-Case: TestH1H1MultipleRequestCL\r\nContent-Length: 0\r\nContent-Length: 1\r\n\r\n", st.authority)); err != nil { + if _, err := io.WriteString(st.conn, fmt.Sprintf(`GET / HTTP/1.1 +Host: %v +Test-Case: TestH1H1MultipleRequestCL +Content-Length: 0 +Content-Length: 1 + +`, st.authority)); err != nil { t.Fatalf("Error io.WriteString() = %v", err) }