tres/secure_channel: Fix the exception handler
This commit is contained in:
parent
79f08f992b
commit
efbdc35147
2 changed files with 16 additions and 6 deletions
|
|
@ -16,7 +16,7 @@ defmodule OfpSetConfigTest do
|
|||
end
|
||||
|
||||
test "with a flag option" do
|
||||
binary = <<0x04, 0x09, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x02, 0xff, 0xe5>>
|
||||
binary = <<0x04, 0x09, 0x00, 0x0C, 0x00, 0x00, 0x00, 0x0D, 0x00, 0x02, 0xFF, 0xE5>>
|
||||
|
||||
set_config =
|
||||
binary
|
||||
|
|
@ -47,8 +47,11 @@ defmodule OfpSetConfigTest do
|
|||
end
|
||||
|
||||
test "with a flag option" do
|
||||
binary = <<0x04, 0x09, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x02, 0xff, 0xe5>>
|
||||
set_config = Openflow.SetConfig.new(xid: 13, flags: [:fragment_reassemble], miss_send_len: :max)
|
||||
binary = <<0x04, 0x09, 0x00, 0x0C, 0x00, 0x00, 0x00, 0x0D, 0x00, 0x02, 0xFF, 0xE5>>
|
||||
|
||||
set_config =
|
||||
Openflow.SetConfig.new(xid: 13, flags: [:fragment_reassemble], miss_send_len: :max)
|
||||
|
||||
^binary = Openflow.to_binary(set_config)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue