mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
Change common_test TestSendHTTPRequest URLs away from Yahoo API
Service shutdown https://twitter.com/ydn/status/1079785891558653952
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user