From 386a348444786562cfd694bb204ff55c08fa3554 Mon Sep 17 00:00:00 2001 From: Christian Korneck Date: Sun, 13 Jan 2019 14:48:30 +0100 Subject: [PATCH] Update http_test.go fix error message in test --- http/http_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/http_test.go b/http/http_test.go index c791b8f..68f1f3f 100644 --- a/http/http_test.go +++ b/http/http_test.go @@ -132,7 +132,7 @@ func TestJSONHandlers(t *testing.T) { {s.URL, `{"ip":"127.0.0.1","ip_decimal":2130706433,"country":"Elbonia","country_eu":false,"country_iso":"EB","city":"Bornyasherk","hostname":"localhost","latitude":63.416667,"longitude":10.416667}`, 200}, {s.URL + "/port/foo", `{"error":"Invalid port: 0"}`, 400}, {s.URL + "/port/0", `{"error":"Invalid port: 0"}`, 400}, - {s.URL + "/port/65537", `{"error":"Invalid port: 65535"}`, 400}, + {s.URL + "/port/65537", `{"error":"Invalid port: 65537"}`, 400}, {s.URL + "/port/31337", `{"ip":"127.0.0.1","port":31337,"reachable":true}`, 200}, {s.URL + "/foo", `{"error":"404 page not found"}`, 404}, {s.URL + "/health", `{"status":"OK"}`, 200},