correcting test

This commit is contained in:
Laurent Le Houerou 2020-10-26 17:04:14 +04:00
parent 7535df2758
commit 5950e42da7

View File

@ -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 {