From 21f448f8f1a17f17a1b52bfd0647b9af4769bc4e Mon Sep 17 00:00:00 2001 From: Vittorio Parrella Date: Sat, 21 Sep 2024 15:32:23 +0200 Subject: [PATCH] cleanup: fix unit test build --- api/api_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/api_test.go b/api/api_test.go index 448ca9c..faaec22 100644 --- a/api/api_test.go +++ b/api/api_test.go @@ -48,12 +48,12 @@ func (s *APISuite) TestFormatRequest() { } func (s *APISuite) TestFormatRequest_WithBody() { - const body = "QPep is a hybrid network accelerator based on the Protocol protocol" + const body = "QPep is a hybrid network accelerator based on the QUIC protocol" req, _ := http.NewRequest("POST", "http://localhost:9443", strings.NewReader(body)) assert.NotNil(s.T(), req) - configuration.QPepConfig.General.Verbose = false - assert.Equal(s.T(), "POST / HTTP/1.1\r\nHost: localhost:9443\r\n\r\nQPep is a hybrid network accelerator based on the Protocol protocol", formatRequest(req)) + configuration.QPepConfig.General.Verbose = true + assert.Equal(s.T(), "POST / HTTP/1.1\r\nHost: localhost:9443\r\n\r\nQPep is a hybrid network accelerator based on the QUIC protocol", formatRequest(req)) } func (s *APISuite) TestFormatRequest_Error() {