fixing test

This commit is contained in:
Mzack9999 2025-07-03 17:28:55 +02:00
parent 4baf46f080
commit cf8d067fea
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ request:
raw: |+ raw: |+
POST /users/3 HTTP/1.1 POST /users/3 HTTP/1.1
Host: ginandjuice.shop Host: ginandjuice.shop
Authorization: Bearer (@= get_value("token") @) Authorization: Bearer (@= get_value("token", "3x4mpl3t0k3n") @)
Accept-Encoding: gzip Accept-Encoding: gzip
Content-Type: application/x-www-form-urlencoded Content-Type: application/x-www-form-urlencoded
Connection: close Connection: close

View File

@ -66,7 +66,7 @@ Content-Type: application/x-www-form-urlencoded
Connection: close Connection: close
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
foo=catalog&bar=product` foo="catalog"&bar=product&debug=false`
normalised := strings.ReplaceAll(request.Request.Raw, "\r\n", "\n") normalised := strings.ReplaceAll(request.Request.Raw, "\r\n", "\n")
require.Equal(t, expectedRaw, strings.TrimSuffix(normalised, "\n"), "request raw does not match expected value") require.Equal(t, expectedRaw, strings.TrimSuffix(normalised, "\n"), "request raw does not match expected value")