Skip to content

Commit 285f32a

Browse files
committed
Fixed test warning [skip ci]
1 parent 230b662 commit 285f32a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/test_helper.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def setup
1515

1616
def teardown
1717
GC.stress = false if stress?
18+
@tempfile = nil
1819
end
1920

2021
def stress?
@@ -112,10 +113,6 @@ def multiclass_params
112113
{objective: "multi:softprob", num_class: 3}
113114
end
114115

115-
def teardown
116-
@tempfile = nil
117-
end
118-
119116
def tempfile
120117
@tempfile ||= "#{Dir.mktmpdir}/#{Time.now.to_f}.json"
121118
end

0 commit comments

Comments
 (0)