Sha256: 5579d678ebd3e4a7a627bd7b7aaf2c67868fde867407aa476737fc80a20ae729
Contents?: true
Size: 422 Bytes
Versions: 4
Compression:
Stored size: 422 Bytes
Contents
require "spec_helper" describe GitLab::Monitor::TimeTracker do it "tracks execution time" do expect(subject.track { sleep 0.1 }.time).to satisfy { |v| v >= 0.1 } end end describe GitLab::Monitor::Utils do it "excludes extraneous PIDs" do allow(described_class).to receive(:exec_pgrep).and_return("12345 my-process\n98765 sh\n") expect(described_class.pgrep("some-process")).to eq(["12345"]) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gitlab-monitor-4.2.0 | spec/util_spec.rb |
gitlab-monitor-4.1.0 | spec/util_spec.rb |
gitlab-monitor-4.0.1 | spec/util_spec.rb |
gitlab-monitor-4.0.0 | spec/util_spec.rb |