Skip to content

Commit

Permalink
protocol decoder: refactoring test (#34)
Browse files Browse the repository at this point in the history
Github Issue: #34

Test names for line too long error handling have been adapted to
naming rules.
  • Loading branch information
y10k committed Mar 17, 2020
1 parent cee6911 commit 31fb910
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions test/test_protocol_decoder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6451,9 +6451,8 @@ def test_charset_convert_options_stream
test_charset_convert_options
end

# always run in stream
def test_command_line_too_long_error
use_imap_stream_decode_engine
def test_command_line_too_long_error_stream
use_imap_stream_decode_engine # always run in stream
imap_decode_engine_evaluate{
assert_untagged_response{|assert|
assert.equal("* OK RIMS v#{RIMS::VERSION} IMAP4rev1 service ready.")
Expand All @@ -6466,9 +6465,8 @@ def test_command_line_too_long_error
}
end

# always run in stream
def test_authenticate_line_too_long_error
use_imap_stream_decode_engine
def test_authenticate_line_too_long_error_stream
use_imap_stream_decode_engine # always run in stream
imap_decode_engine_evaluate{
assert_untagged_response{|assert|
assert.equal("* OK RIMS v#{RIMS::VERSION} IMAP4rev1 service ready.")
Expand All @@ -6483,9 +6481,8 @@ def test_authenticate_line_too_long_error
}
end

# always run in stream
def test_idle_line_too_long_error
use_imap_stream_decode_engine
def test_idle_line_too_long_error_stream
use_imap_stream_decode_engine # always run in stream
imap_decode_engine_evaluate{
assert_untagged_response{|assert|
assert.equal("* OK RIMS v#{RIMS::VERSION} IMAP4rev1 service ready.")
Expand Down

0 comments on commit 31fb910

Please sign in to comment.