correcting test
This commit is contained in:
parent
7535df2758
commit
5950e42da7
@ -2,11 +2,15 @@ package ddwrt
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestRequester_GetOutboundIp(t *testing.T) {
|
func TestRequester_GetOutboundIp(t *testing.T) {
|
||||||
requester := NewIpRequester("", "laurent", "&951753seiko38613861")
|
requester := NewIpRequester(&http.Client{
|
||||||
|
Timeout: 30 * time.Second,
|
||||||
|
}, "", "laurent", "&951753seiko38613861")
|
||||||
result := <-requester.GetOutboundIp()
|
result := <-requester.GetOutboundIp()
|
||||||
fmt.Printf("%+v\n", result)
|
fmt.Printf("%+v\n", result)
|
||||||
if result.Error != nil {
|
if result.Error != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user