dnsupdater/internal/outboundip/ddwrt/iprequester_test.go

16 lines
285 B
Go
Raw Normal View History

2020-10-26 09:36:59 +00:00
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)
}
}