We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8a5085 commit 8dd4ccaCopy full SHA for 8dd4cca
test/std/net/http_client_test.ds
@@ -21,12 +21,16 @@ fn test_get_to_file
21
end
22
23
fn test_post
24
- payload = set {\"login\":\"login\",\"password\":\"password\"}
25
- response = http_client --method POST --payload ${payload} https://postman-echo.com/post
+ os = os_family
+ is_linux = equals ${os} linux
26
+ if ${is_linux}
27
+ payload = set {\"login\":\"login\",\"password\":\"password\"}
28
+ response = http_client --method POST --payload ${payload} https://postman-echo.com/post
29
- found = contains ${response} password
30
+ found = contains ${response} password
31
- assert ${found}
32
+ assert ${found}
33
+ end
34
35
36
fn test_invalid_url
0 commit comments