dnsupdater/internal/outboundip/ddwrt/iprequester_test.go
2020-10-26 13:36:59 +04:00

16 lines
285 B
Go

package ddwrt
import (
"fmt"
"testing"
)
func TestRequester_GetOutboundIp(t *testing.T) {
requester := NewIpRequester("", "laurent", "&951753seiko38613861")
result := <-requester.GetOutboundIp()
fmt.Printf("%+v\n", result)
if result.Error != nil {
t.Error(result.Error)
}
}