Skip to content

Commit 124e4fc

Browse files
committed
Fix invalid use of instance variable in Ractor context
1 parent 1b828d1 commit 124e4fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/pg/connection_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
end
4949

5050
it "connects using 7 arguments in a Ractor", :ractor do
51-
vals = Ractor.new do
52-
PG.connect( 'localhost', @port, nil, nil, :test, nil, nil ) do |conn|
51+
vals = Ractor.new(@port) do |port|
52+
PG.connect( 'localhost', port, nil, nil, :test, nil, nil ) do |conn|
5353
conn.exec("SELECT 234").values
5454
end
5555
end.value

0 commit comments

Comments
 (0)