13 lines
260 B
Go
13 lines
260 B
Go
package openwrt
|
|
|
|
import "testing"
|
|
|
|
func TestDhcpClientAskForIP(t *testing.T) {
|
|
uexec := createMockExecutor("", "", 0)
|
|
dhc := NewDhcpClientWithExecutor("wlan1", uexec)
|
|
res := dhc.AskForIP()
|
|
if res.ReturnCode != 0 {
|
|
t.Error("Error in DHCP Client !!")
|
|
}
|
|
}
|