diff options
author | Araq <rumpf_a@web.de> | 2017-09-05 23:26:17 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-09-05 23:26:17 +0200 |
commit | cf28222d2c2f8ca9963611cccfcdb00283ceb33d (patch) | |
tree | 80ff6555ac2b4cd81c4a90c3f30f8ce96a9fcf19 /tests/stdlib | |
parent | d13535471bb75e28b141b09581319216f398b450 (diff) | |
download | Nim-cf28222d2c2f8ca9963611cccfcdb00283ceb33d.tar.gz |
attempt to make travis green again
Diffstat (limited to 'tests/stdlib')
-rw-r--r-- | tests/stdlib/thttpclient.nim | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/tests/stdlib/thttpclient.nim b/tests/stdlib/thttpclient.nim index c6a857edb..e759e2977 100644 --- a/tests/stdlib/thttpclient.nim +++ b/tests/stdlib/thttpclient.nim @@ -37,13 +37,15 @@ proc asyncTest() {.async.} = doAssert(false, "HttpRequestError should have been raised") - # Multipart test. - var data = newMultipartData() - data["output"] = "soap12" - data["uploaded_file"] = ("test.html", "text/html", - "<html><head></head><body><p>test</p></body></html>") - resp = await client.post("http://validator.w3.org/check", multipart=data) - doAssert(resp.code.is2xx) + when false: + # w3.org now blocks travis, so disabled: + # Multipart test. + var data = newMultipartData() + data["output"] = "soap12" + data["uploaded_file"] = ("test.html", "text/html", + "<html><head></head><body><p>test</p></body></html>") + resp = await client.post("http://validator.w3.org/check", multipart=data) + doAssert(resp.code.is2xx) # onProgressChanged when manualTests: @@ -85,13 +87,15 @@ proc syncTest() = except: doAssert(false, "HttpRequestError should have been raised") - # Multipart test. - var data = newMultipartData() - data["output"] = "soap12" - data["uploaded_file"] = ("test.html", "text/html", - "<html><head></head><body><p>test</p></body></html>") - resp = client.post("http://validator.w3.org/check", multipart=data) - doAssert(resp.code.is2xx) + when false: + # w3.org now blocks travis, so disabled: + # Multipart test. + var data = newMultipartData() + data["output"] = "soap12" + data["uploaded_file"] = ("test.html", "text/html", + "<html><head></head><body><p>test</p></body></html>") + resp = client.post("http://validator.w3.org/check", multipart=data) + doAssert(resp.code.is2xx) # onProgressChanged when manualTests: |