Sha256: 42c661a8a599060955c0229166c8a8d396eb4a257bc5842caf9e5c8bdca37453

Contents?: true

Size: 283 Bytes

Versions: 22

Compression:

Stored size: 283 Bytes

Contents

require 'rails_helper'

RSpec.describe Kuroko2::MemorySampler do
  describe 'get_by_pgid' do
    let!(:pid) { Process.spawn(*%w[sleep 10], pgroup: true) }

    it 'returns memory consumption' do
      expect(described_class.get_by_pgid(pid)).to be_kind_of(Integer)
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
kuroko2-0.8.0 spec/memory_sampler_spec.rb
kuroko2-0.7.0 spec/memory_sampler_spec.rb
kuroko2-0.6.0 spec/memory_sampler_spec.rb
kuroko2-0.5.2 spec/memory_sampler_spec.rb
kuroko2-0.5.1 spec/memory_sampler_spec.rb
kuroko2-0.5.0 spec/memory_sampler_spec.rb
kuroko2-0.4.6 spec/memory_sampler_spec.rb
kuroko2-0.4.5 spec/memory_sampler_spec.rb
kuroko2-0.4.4 spec/memory_sampler_spec.rb
kuroko2-0.4.3 spec/memory_sampler_spec.rb
kuroko2-0.4.2 spec/memory_sampler_spec.rb
kuroko2-0.4.1 spec/memory_sampler_spec.rb
kuroko2-0.4.0 spec/memory_sampler_spec.rb
kuroko2-0.3.4 spec/memory_sampler_spec.rb
kuroko2-0.3.3 spec/memory_sampler_spec.rb
kuroko2-0.3.2 spec/memory_sampler_spec.rb
kuroko2-0.3.1 spec/memory_sampler_spec.rb
kuroko2-0.3.0 spec/memory_sampler_spec.rb
kuroko2-0.2.3 spec/memory_sampler_spec.rb
kuroko2-0.2.2 spec/memory_sampler_spec.rb