From 0630c649c6b4fca4abfa157c5bc6f9f9e50e9c65 Mon Sep 17 00:00:00 2001 From: metagn Date: Tue, 28 Mar 2023 11:34:30 +0300 Subject: [PATCH] disable google request in thttpclient (#21572) was breaking macos CI --- tests/stdlib/thttpclient.nim | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/stdlib/thttpclient.nim b/tests/stdlib/thttpclient.nim index c731c81b0c..00e728fa2d 100644 --- a/tests/stdlib/thttpclient.nim +++ b/tests/stdlib/thttpclient.nim @@ -57,8 +57,9 @@ proc asyncTest() {.async.} = doAssert(resp.code == Http404) doAssert(resp.status == $Http404) - resp = await client.request("https://google.com/") - doAssert(resp.code.is2xx or resp.code.is3xx) + when false: # occasionally does not give success code + resp = await client.request("https://google.com/") + doAssert(resp.code.is2xx or resp.code.is3xx) # getContent try: @@ -118,8 +119,9 @@ proc syncTest() = doAssert(resp.code == Http404) doAssert(resp.status == $Http404) - resp = client.request("https://google.com/") - doAssert(resp.code.is2xx or resp.code.is3xx) + when false: # occasionally does not give success code + resp = client.request("https://google.com/") + doAssert(resp.code.is2xx or resp.code.is3xx) # getContent try: