From bfbd496c3ad2f815b15e27b030d29bb7a4722bd5 Mon Sep 17 00:00:00 2001 From: Adrian Gallagher Date: Sat, 5 Jan 2019 17:56:34 +1100 Subject: [PATCH] Change common_test TestSendHTTPRequest URLs away from Yahoo API Service shutdown https://twitter.com/ydn/status/1079785891558653952 --- common/common_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/common_test.go b/common/common_test.go index e338fabc..fbe2aae8 100644 --- a/common/common_test.go +++ b/common/common_test.go @@ -527,28 +527,28 @@ func TestSendHTTPRequest(t *testing.T) { headers["Content-Type"] = "application/x-www-form-urlencoded" _, err := SendHTTPRequest( - methodGarbage, "https://query.yahooapis.com/v1/public/yql", headers, + methodGarbage, "https://www.google.com", headers, strings.NewReader(""), ) if err == nil { t.Error("Test failed. ") } _, err = SendHTTPRequest( - methodPost, "https://query.yahooapis.com/v1/public/yql", headers, + methodPost, "https://www.google.com", headers, strings.NewReader(""), ) if err != nil { t.Errorf("Test failed. %s ", err) } _, err = SendHTTPRequest( - methodGet, "https://query.yahooapis.com/v1/public/yql", headers, + methodGet, "https://www.google.com", headers, strings.NewReader(""), ) if err != nil { t.Errorf("Test failed. %s ", err) } _, err = SendHTTPRequest( - methodDelete, "https://query.yahooapis.com/v1/public/yql", headers, + methodDelete, "https://www.google.com", headers, strings.NewReader(""), ) if err != nil {