From 3621143c89ac445d9b3264cc247c59bb4db4b1e4 Mon Sep 17 00:00:00 2001 From: Tanguy Date: Wed, 30 Mar 2022 17:09:43 +0200 Subject: [PATCH] reenable auth test with other server --- tests/testhttpclient.nim | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/testhttpclient.nim b/tests/testhttpclient.nim index dd6ea3b8..66404682 100644 --- a/tests/testhttpclient.nim +++ b/tests/testhttpclient.nim @@ -690,11 +690,11 @@ suite "HTTP client testing suite": proc testBasicAuthorization(): Future[bool] {.async.} = var session = createSession(true, maxRedirections = 10) - let url = parseUri("https://guest:guest@jigsaw.w3.org/HTTP/Basic/") + let url = parseUri("https://user:passwd@httpbin.org/basic-auth/user/passwd") let resp = await session.fetch(url) await session.closeWait() if (resp.status == 200) and - ("Your browser made it!" in cast[string](resp.data)): + ("true," in cast[string](resp.data)): return true else: return false @@ -764,9 +764,6 @@ suite "HTTP client testing suite": check waitFor(testRequestRedirectTest(address, true, 4)) == "redirect-true" test "HTTPS basic authorization test": - skip() - return - # started to fail out of the blue check waitFor(testBasicAuthorization()) == true test "Leaks test":