From 8f4658de34e093d96c85edc98e8a13b64f2bdd23 Mon Sep 17 00:00:00 2001 From: Matthew Casperson Date: Fri, 13 Sep 2019 09:48:53 +1000 Subject: [PATCH] Fixing up the tests --- mockendpoint.json | 2 +- src/test/java/com/octopus/ProxyTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mockendpoint.json b/mockendpoint.json index dc8176e3..45c2fbb5 100644 --- a/mockendpoint.json +++ b/mockendpoint.json @@ -3,7 +3,7 @@ "results": { "channel": { "astronomy": { - "sunset": "7:00 PM" + "sunset": "6:59 pm" } } } diff --git a/src/test/java/com/octopus/ProxyTest.java b/src/test/java/com/octopus/ProxyTest.java index ac0b48dc..8246dbd2 100644 --- a/src/test/java/com/octopus/ProxyTest.java +++ b/src/test/java/com/octopus/ProxyTest.java @@ -27,7 +27,7 @@ public void mockRequests() throws URISyntaxException { automatedBrowser.init(); automatedBrowser.alterResponseFrom( - ".*?query\\.yahooapis\\.com.*", + ".*?raw\\.githubusercontent\\.com.*", 200, "{\"query\":{\"count\":1,\"created\":\"2018-04-28T05:20:30Z\",\"lang\":\"en-US\",\"results\":{\"channel\":{\"astronomy\":{\"sunset\":\"7:00 pm\"}}}}}"); @@ -48,7 +48,7 @@ public void mockRequests2() throws URISyntaxException { automatedBrowser.init(); automatedBrowser.alterResponseFrom( - ".*?query\\.yahooapis\\.com.*", + ".*?raw\\.githubusercontent\\.com.*", 200, "{\"query\":{\"count\":1,\"created\":\"2018-04-28T05:20:30Z\",\"lang\":\"en-US\",\"results\":{\"channel\":{\"astronomy\":{\"sunset\":\"7:4 pm\"}}}}}");