mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
http: disable the tests for now
This commit is contained in:
parent
75b632baad
commit
2eb9440095
@ -21,6 +21,7 @@ fn test_http_get() {
|
|||||||
|
|
||||||
|
|
||||||
fn test_http_get_from_vlang_utc_now() {
|
fn test_http_get_from_vlang_utc_now() {
|
||||||
|
/*
|
||||||
urls := ['http://vlang.io/utc_now', 'https://vlang.io/utc_now']
|
urls := ['http://vlang.io/utc_now', 'https://vlang.io/utc_now']
|
||||||
for url in urls {
|
for url in urls {
|
||||||
println('Test getting current time from $url by http.get')
|
println('Test getting current time from $url by http.get')
|
||||||
@ -30,9 +31,11 @@ fn test_http_get_from_vlang_utc_now() {
|
|||||||
assert res.text.int() > 1566403696
|
assert res.text.int() > 1566403696
|
||||||
println('Current time is: ${res.text.int()}')
|
println('Current time is: ${res.text.int()}')
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
fn test_public_servers() {
|
fn test_public_servers() {
|
||||||
|
/*
|
||||||
urls := [
|
urls := [
|
||||||
'http://github.com/robots.txt',
|
'http://github.com/robots.txt',
|
||||||
'http://google.com/robots.txt',
|
'http://google.com/robots.txt',
|
||||||
@ -47,4 +50,5 @@ fn test_public_servers() {
|
|||||||
assert 200 == res.status_code
|
assert 200 == res.status_code
|
||||||
assert res.text.len > 0
|
assert res.text.len > 0
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user