mirror of
https://github.com/rtr7/router7.git
synced 2024-05-06 15:54:52 +00:00
dhcpv4: fail test on temporary errors, too
This commit is contained in:
@ -90,6 +90,9 @@ func TestDHCPv4(t *testing.T) {
|
||||
if !c.ObtainOrRenew() {
|
||||
t.Fatal(c.Err())
|
||||
}
|
||||
if err := c.Err(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
cfg := c.Config()
|
||||
t.Logf("cfg = %+v", cfg)
|
||||
if got, want := cfg.Router, "192.168.23.1"; got != want {
|
||||
|
Reference in New Issue
Block a user