From 69fa63bac8a976767b428a9123e4afb18278a201 Mon Sep 17 00:00:00 2001 From: Szabo Bogdan Date: Fri, 12 Aug 2016 21:10:31 +0300 Subject: [PATCH] Fixed broken tests --- source/api.d | 3 +++ source/test.d | 11 ++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/source/api.d b/source/api.d index 89232ac..eff6969 100755 --- a/source/api.d +++ b/source/api.d @@ -837,6 +837,8 @@ private Json makeRequest(T)(HTTPMethod method, string path, T data) { } ); + writeln("RESULT: ", result); + return result; } @@ -867,5 +869,6 @@ private Json makeRequest(HTTPMethod method, string path) { } ); + writeln("RESULT: ", result); return result; } diff --git a/source/test.d b/source/test.d index 1ceea25..aa97f9e 100644 --- a/source/test.d +++ b/source/test.d @@ -6,11 +6,12 @@ import vibe.data.json; import std.datetime; -unittest {/+ - auto url1 = "http://www.amazon.com/All-Light-We-Cannot-See/dp/1476746583/"; - auto url2 = "http://www.amazon.com/The-Boys-Boat-Americans-Olympics/dp/0143125478/"; +unittest { + auto url1 = "https://www.amazon.com/All-Light-We-Cannot-See/dp/1476746583/"; + auto url2 = "https://www.amazon.com/The-Boys-Boat-Americans-Olympics/dp/0143125478/"; - auto session = new SeleniumApi("http://127.0.0.1:4444/wd/hub", Capabilities.chrome); + auto connector = new SeleniumApiConnector("http://127.0.0.1:4444/wd/hub", Capabilities.chrome); + auto session = connector.api; session.timeouts(TimeoutType.script, 10_000); session.timeouts(TimeoutType.implicit, 10_000); @@ -183,5 +184,5 @@ unittest {/+ //session.applicationCacheStatus(); - session.disconnect;+/ + connector.connection.disconnect; }