Skip to content

Commit

Permalink
Ensure shutdown after the test
Browse files Browse the repository at this point in the history
`instance_shutdown` in `ensure` block.

Signed-off-by: abetomo <[email protected]>
  • Loading branch information
abetomo committed Feb 14, 2023
1 parent a6b02da commit 233a5f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/plugin/test_in_tcp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ def create_tcp_socket(host, port, &block)

assert_equal 1, d.instance.log.logs.count { |l| l =~ /anonymous client/ }
assert_equal 0, d.events.size

d.instance_shutdown
ensure
d.instance_shutdown if d&.instance
end
end

Expand Down

0 comments on commit 233a5f9

Please sign in to comment.