Skip to content

Commit 8dd4cca

Browse files
committed
fix tests
1 parent a8a5085 commit 8dd4cca

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/std/net/http_client_test.ds

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,16 @@ fn test_get_to_file
2121
end
2222

2323
fn test_post
24-
payload = set {\"login\":\"login\",\"password\":\"password\"}
25-
response = http_client --method POST --payload ${payload} https://postman-echo.com/post
24+
os = os_family
25+
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
2629

27-
found = contains ${response} password
30+
found = contains ${response} password
2831

29-
assert ${found}
32+
assert ${found}
33+
end
3034
end
3135

3236
fn test_invalid_url

0 commit comments

Comments
 (0)