spec/async/io/stream_spec.rb in async-io-1.24.0 vs spec/async/io/stream_spec.rb in async-io-1.25.0

- old
+ new

@@ -96,18 +96,18 @@ it "can read data quickly" do |example| data = nil duration = Async::Clock.measure do - data = stream.read(4*1024**3) + data = stream.read(1024**3) end size = data.bytesize / 1024**2 rate = size / duration example.reporter.message "Read #{size.round(2)}MB of data at #{rate.round(2)}MB/s." - expect(rate).to be > 512 + expect(rate).to be > 128 end end context "buffered I/O" do include_context Async::IO::Stream