File: relax-time-constaint.patch

package info (click to toggle)
ruby-voight-kampff 1.1.3-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 340 kB
  • sloc: ruby: 240; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 527 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: relax time constraint in test
Author: Cédric Boutillier <boutil@debian.org>
Last-Update: 2020-08-28

--- a/spec/lib/voight_kampff/test_spec.rb
+++ b/spec/lib/voight_kampff/test_spec.rb
@@ -30,7 +30,7 @@
     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 { 20.times { VoightKampff::Test.new('anything').bot? } }).to be < 0.003
     end
   end
 end