Class: HotCell::Fixtures::Overflowing
- Defined in:
- lib/hot_cell/test_operations.rb
Constant Summary
Constants inherited from Operation
Instance Method Summary collapse
Methods inherited from Operation
abstract_operation, abstract_operation?, before_fork, before_worker_boot, inherited, limits, operation, operation_name, #run_tool, unreadable
Instance Method Details
#perform(_inputs, outputs, megabytes:) ⇒ Object
269 270 271 272 273 274 275 276 |
# File 'lib/hot_cell/test_operations.rb', line 269 def perform(_inputs, outputs, megabytes:) File.open(outputs.first.path, "wb") do |file| megabytes.times { file.write "x" * (1024 * 1024) } file.flush end {} end |