From ea4a247d95510d1e253ca99894d027bec2f04f0c Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 1 Aug 2018 07:51:10 +0000 Subject: [PATCH] .autotest git-svn-id: svn://ultimatepp.org/upp/trunk@12132 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- autotest/HttpRequest/HttpRequest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autotest/HttpRequest/HttpRequest.cpp b/autotest/HttpRequest/HttpRequest.cpp index 20ecf0a64..ce77d9fef 100644 --- a/autotest/HttpRequest/HttpRequest.cpp +++ b/autotest/HttpRequest/HttpRequest.cpp @@ -45,7 +45,7 @@ CONSOLE_APP_MAIN ASSERT(h.IsError()); LDUMP(h.GetError()); } - { + if(GetSysDate() > Date(2018, 9, 1)) { // Because "Resource temporarily unavailable", but let us recheck later HttpRequest h("http://dev.alt.cloudappsportal.com/_api/web/lists"); h.KeepAlive(); h.Execute(); @@ -59,14 +59,14 @@ CONSOLE_APP_MAIN r.User("user", "passw0rd"); String h = r.Execute(); DUMP(h); - ASSERT(h.Find("\"authenticated\":true") >= 0); + ASSERT(h.Find("\"authenticated\": true") >= 0); } { HttpRequest r("http://httpbin.org/digest-auth/auth/usr/pwd"); r.Digest("usr", "pwd"); String h = r.Execute(); DUMP(r.GetContent()); - ASSERT(h.Find("\"authenticated\":true") >= 0); + ASSERT(h.Find("\"authenticated\": true") >= 0); } { HttpRequest r("https://httpbin.org/bytes/0");