Skip to content

Commit dbfc128

Browse files
committed
remove invalid port number
1 parent 6de0b85 commit dbfc128

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/result_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ class ResultTest < TinyTds::TestCase
672672
end
673673

674674
it 'should flush info messages before raising error in cases of timeout' do
675-
@client = new_connection timeout: 1, port: 1234, message_handler: Proc.new { |m| messages << m }
675+
@client = new_connection timeout: 1, message_handler: Proc.new { |m| messages << m }
676676
action = lambda { @client.execute("print 'hello'; waitfor delay '00:00:02'").do }
677677
messages.clear
678678
assert_raise_tinytds_error(action) do |e|
@@ -684,7 +684,7 @@ class ResultTest < TinyTds::TestCase
684684
end
685685

686686
it 'should print info messages before raising error in cases of timeout' do
687-
@client = new_connection timeout: 1, port: 1234, message_handler: Proc.new { |m| messages << m }
687+
@client = new_connection timeout: 1, message_handler: Proc.new { |m| messages << m }
688688
action = lambda { @client.execute("raiserror('hello', 1, 1) with nowait; waitfor delay '00:00:02'").do }
689689
messages.clear
690690
assert_raise_tinytds_error(action) do |e|

0 commit comments

Comments
 (0)