diff options
author | Dennis Marttinen <twelho@welho.tech> | 2022-10-01 14:15:01 +0300 |
---|---|---|
committer | Dennis Marttinen <twelho@welho.tech> | 2022-10-01 14:31:21 +0300 |
commit | e6997bf8b3fab1a1d480f7bd564988164a3b6bd3 (patch) | |
tree | 3cedc99231cbc29465eab72b0c9a1482c4060ffd /dhcpv4/server4/server_test.go | |
parent | 043f1726f02e2908b959423a0b95a9affdc08b73 (diff) |
dhcpv4: return a new lease from Renew()
Signed-off-by: Dennis Marttinen <twelho@welho.tech>
Diffstat (limited to 'dhcpv4/server4/server_test.go')
-rw-r--r-- | dhcpv4/server4/server_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/server4/server_test.go b/dhcpv4/server4/server_test.go index 7be868c..b0336db 100644 --- a/dhcpv4/server4/server_test.go +++ b/dhcpv4/server4/server_test.go @@ -116,7 +116,7 @@ func TestServer(t *testing.T) { require.Equal(t, ifaces[0].HardwareAddr, p.ClientHWAddr) } - err = c.Renew(context.Background(), lease, modifiers...) + lease, err = c.Renew(context.Background(), lease, modifiers...) require.NoError(t, err) require.NotNil(t, lease.Offer, lease.ACK) for _, p := range []*dhcpv4.DHCPv4{lease.Offer, lease.ACK} { |