1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix failing vweb_test.v

This commit is contained in:
Delyan Angelov
2021-08-17 18:36:10 +03:00
parent e1c762a616
commit f96b81b53a
4 changed files with 7 additions and 5 deletions

View File

@ -212,7 +212,8 @@ Content-Disposition: form-data; name=\"$name\"
$contents
--------------------------$boundary--
"
mut x := http.fetch('http://127.0.0.1:$sport/form_echo',
mut x := http.fetch(
url: 'http://127.0.0.1:$sport/form_echo'
method: .post
header: http.new_header(
key: .content_type
@ -238,7 +239,8 @@ fn test_http_client_shutdown_does_not_work_without_a_cookie() {
fn testsuite_end() {
// This test is guaranteed to be called last.
// It sends a request to the server to shutdown.
x := http.fetch('http://127.0.0.1:$sport/shutdown',
x := http.fetch(
url: 'http://127.0.0.1:$sport/shutdown'
method: .get
cookies: {
'skey': 'superman'