diff options
author | insomniac <insomniacslk@users.noreply.github.com> | 2018-05-25 15:41:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-25 15:41:44 +0100 |
commit | f9c923d97b0774c209d9bc492499970b8d5a0ed8 (patch) | |
tree | d7f4f62c2baba198b9474fcdec7f07bd000c1858 /dhcpv6/option_bootfileurl_test.go | |
parent | d37b622d85bdf14bc0922833053419dece4df243 (diff) |
OptBootFileURL fields are now public (#68)
Diffstat (limited to 'dhcpv6/option_bootfileurl_test.go')
-rw-r--r-- | dhcpv6/option_bootfileurl_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv6/option_bootfileurl_test.go b/dhcpv6/option_bootfileurl_test.go index b42fd7c..6f7e077 100644 --- a/dhcpv6/option_bootfileurl_test.go +++ b/dhcpv6/option_bootfileurl_test.go @@ -14,7 +14,7 @@ func TestOptBootFileURL(t *testing.T) { if optLen := opt.Length(); optLen != len(expected) { t.Fatalf("Invalid length. Expected %v, got %v", len(expected), optLen) } - if url := opt.BootFileURL(); !bytes.Equal(url, expected) { + if url := opt.BootFileURL; !bytes.Equal(url, expected) { t.Fatalf("Invalid boot file URL. Expected %v, got %v", expected, url) } } @@ -24,7 +24,7 @@ func TestOptBootFileURLToBytes(t *testing.T) { expected := []byte{00, 59, 00, byte(len(urlString))} expected = append(expected, urlString...) opt := OptBootFileURL{ - bootFileUrl: urlString, + BootFileURL: urlString, } toBytes := opt.ToBytes() if !bytes.Equal(toBytes, expected) { |