We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d47e6e1 commit 089a748Copy full SHA for 089a748
1 file changed
test/test_helper.rb
@@ -8,6 +8,23 @@
8
require "daru"
9
10
class Minitest::Test
11
+ def setup
12
+ if stress?
13
+ # autoload before GC.stress
14
+ LightGBM::FFI.ffi_libraries
15
+ load_data
16
+ GC.stress = true
17
+ end
18
19
+
20
+ def teardown
21
+ GC.stress = false if stress?
22
23
24
+ def stress?
25
+ ENV["STRESS"]
26
27
28
def assert_elements_in_delta(expected, actual)
29
assert_equal expected.size, actual.size
30
expected.zip(actual) do |exp, act|
0 commit comments