From 5950e42da703d099faae8c5f9ac39355cd284026 Mon Sep 17 00:00:00 2001 From: Laurent Le Houerou Date: Mon, 26 Oct 2020 17:04:14 +0400 Subject: [PATCH] correcting test --- internal/outboundip/ddwrt/iprequester_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/outboundip/ddwrt/iprequester_test.go b/internal/outboundip/ddwrt/iprequester_test.go index 834b6d8..33fa871 100644 --- a/internal/outboundip/ddwrt/iprequester_test.go +++ b/internal/outboundip/ddwrt/iprequester_test.go @@ -2,11 +2,15 @@ package ddwrt import ( "fmt" + "net/http" "testing" + "time" ) func TestRequester_GetOutboundIp(t *testing.T) { - requester := NewIpRequester("", "laurent", "&951753seiko38613861") + requester := NewIpRequester(&http.Client{ + Timeout: 30 * time.Second, + }, "", "laurent", "&951753seiko38613861") result := <-requester.GetOutboundIp() fmt.Printf("%+v\n", result) if result.Error != nil {