Skip to content

Commit 040fc63

Browse files
committed
fix warnings in tests
1 parent 380287a commit 040fc63

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/test_database.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,10 @@ def test_function_return_types
280280
end
281281

282282
def test_function_gc_segfault
283-
skip("Segfault is unsettling to see when running rake test")
284283
@db.create_function("bug", -1) { |func, *values| func.result = values.join }
285284
# With a lot of data and a lot of threads, try to induce a GC segfault.
286285
params = Array.new(127, "?" * 28000)
287-
proc = Proc.new { db.execute("select bug(#{Array.new(params.length, "?").join(",")})", *params) }
286+
proc = Proc.new { db.execute("select bug(#{Array.new(params.length, "?").join(",")})", params) }
288287
Mutex.new.tap { |m| threads = (0..30).inject([]) { |a| a << Thread.new { m.synchronize { proc.call } } }.each { |thread| thread.join } }
289288
end
290289

0 commit comments

Comments
 (0)