summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/option_relay_agent_information_test.go
diff options
context:
space:
mode:
authorChristopher Koch <chrisko@google.com>2019-01-10 13:16:42 -0800
committerinsomniac <insomniacslk@users.noreply.github.com>2019-01-10 23:01:22 +0000
commit512011c2eb80a7c0316405ef7aaae6e0b5b09b1c (patch)
treee12cdbfa20d212059004efa9efc1cb4a7432ac20 /dhcpv4/option_relay_agent_information_test.go
parente87114a6e449d7a2e458b5529923e5668dfa3a11 (diff)
dhcpv4: remote OptionGetter interface in favor of Options type.
Diffstat (limited to 'dhcpv4/option_relay_agent_information_test.go')
-rw-r--r--dhcpv4/option_relay_agent_information_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv4/option_relay_agent_information_test.go b/dhcpv4/option_relay_agent_information_test.go
index bff8ced..8722593 100644
--- a/dhcpv4/option_relay_agent_information_test.go
+++ b/dhcpv4/option_relay_agent_information_test.go
@@ -25,9 +25,9 @@ func TestParseOptRelayAgentInformation(t *testing.T) {
opt, err = ParseOptRelayAgentInformation(data[2:])
require.NoError(t, err)
require.Equal(t, len(opt.Options), 2)
- circuit := opt.Options.GetOneOption(1).(*OptionGeneric)
+ circuit := opt.Options.GetOne(1).(*OptionGeneric)
require.NoError(t, err)
- remote := opt.Options.GetOneOption(2).(*OptionGeneric)
+ remote := opt.Options.GetOne(2).(*OptionGeneric)
require.NoError(t, err)
require.Equal(t, circuit.Data, []byte("linux"))
require.Equal(t, remote.Data, []byte("boot"))