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 {