Skip to content

Commit

Permalink
Loosen up benchmark tests
Browse files Browse the repository at this point in the history
The current numbers seem to occaisionally fail on slower hardware.
  • Loading branch information
adamcrown committed Jun 24, 2019
1 parent a684eea commit 77048d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/lib/voight_kampff/test_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
before { VoightKampff::Test.new('anything').bot? }

it 'is fast' do
expect(Benchmark.realtime { 20.times { VoightKampff::Test.new('anything').bot? } }).to be < 0.002
expect(
Benchmark.realtime do
20.times { VoightKampff::Test.new('anything').bot? }
end
).to be < 0.003
end
end
end

0 comments on commit 77048d0

Please sign in to comment.