This repository has been archived on 2024-08-02. You can view files and clone it, but cannot push or open issues or pull requests.
|
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 !!")
|
|
}
|
|
}
|