From 05f8d4e8c96b588022d3db147ca3cb83c42f1fc3 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 25 Jul 2022 20:08:58 +0900 Subject: [PATCH] Fix integration test failure --- integration-tests/nghttpx_http1_test.go | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/integration-tests/nghttpx_http1_test.go b/integration-tests/nghttpx_http1_test.go index d558f9e5..ac9bc2a5 100644 --- a/integration-tests/nghttpx_http1_test.go +++ b/integration-tests/nghttpx_http1_test.go @@ -91,13 +91,8 @@ func TestH1H1MultipleRequestCL(t *testing.T) { st := newServerTester(t, opts) defer st.Close() - if _, err := io.WriteString(st.conn, fmt.Sprintf(`GET / HTTP/1.1 -Host: %v -Test-Case: TestH1H1MultipleRequestCL -Content-Length: 0 -Content-Length: 0 - -`, st.authority)); err != nil { + 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: 0\r\n\r\n", + st.authority)); err != nil { t.Fatalf("Error io.WriteString() = %v", err) } @@ -1309,12 +1304,8 @@ func TestH1ResponseBeforeRequestEnd(t *testing.T) { st := newServerTester(t, opts) defer st.Close() - if _, err := io.WriteString(st.conn, fmt.Sprintf(`POST / HTTP/1.1 -Host: %v -Test-Case: TestH1ResponseBeforeRequestEnd -Content-Length: 1000000 - -`, st.authority)); err != nil { + if _, err := io.WriteString(st.conn, fmt.Sprintf("POST / HTTP/1.1\r\nHost: %v\r\nTest-Case: TestH1ResponseBeforeRequestEnd\r\nContent-Length: 1000000\r\n\r\n", + st.authority)); err != nil { t.Fatalf("Error io.WriteString() = %v", err) }