summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_serverid_test.go
diff options
context:
space:
mode:
authorSean Karlage <skarlage@fb.com>2018-07-29 17:54:30 -0700
committerSean Karlage <skarlage@fb.com>2018-07-30 22:17:49 -0700
commit7319b8f8a1a601b5e69c5bcaa33914c0f85b92e6 (patch)
tree945d12ed3d8a11ebc55dd2f8d6ee1304ecd2b20f /dhcpv6/option_serverid_test.go
parentc6894ea160d82b4a326ebab94faaebd090192a7b (diff)
DHCPv6: Rename Option constants to CamelCase
To appease linters
Diffstat (limited to 'dhcpv6/option_serverid_test.go')
-rw-r--r--dhcpv6/option_serverid_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/dhcpv6/option_serverid_test.go b/dhcpv6/option_serverid_test.go
index f420b78..e330fa8 100644
--- a/dhcpv6/option_serverid_test.go
+++ b/dhcpv6/option_serverid_test.go
@@ -30,7 +30,7 @@ func TestOptServerIdToBytes(t *testing.T) {
},
}
expected := []byte{
- 0, 2, // OPTION_SERVERID
+ 0, 2, // OptionServerID
0, 10, // length
0, 3, // DUID_LL
0, 1, // hwtype ethernet
@@ -46,7 +46,7 @@ func TestOptServerIdDecodeEncode(t *testing.T) {
5, 4, 3, 2, 1, 0, // hw addr
}
expected := append([]byte{
- 0, 2, // OPTION_SERVERID
+ 0, 2, // OptionServerID
0, 10, // length
}, data...)
opt, err := ParseOptServerId(data)
@@ -63,5 +63,5 @@ func TestOptionServerId(t *testing.T) {
},
}
require.Equal(t, opt.Length(), 10)
- require.Equal(t, opt.Code(), OPTION_SERVERID)
+ require.Equal(t, opt.Code(), OptionServerID)
}