Skip to content

Commit 8ffe059

Browse files
committed
Does this fix the failure?
1 parent 7459c6a commit 8ffe059

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

core/io/buffer/map_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ def make_big_file_fixture
261261
@file = File.open(make_big_file_fixture, "r+")
262262
-> { IO::Buffer.map(@file, 17, IO::Buffer::PAGE_SIZE) }.should raise_error(ArgumentError, "Offset too large!")
263263
ensure
264+
@file.close unless @file.closed?
264265
File.delete(@file.path)
265266
end
266267
end

0 commit comments

Comments
 (0)