Explorar o código

Use less confusing syntax for memory leak test

Christopher Mullins %!s(int64=6) %!d(string=hai) anos
pai
achega
ea84164984
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/remote/spec/settings_spec.rb

+ 1 - 1
test/remote/spec/settings_spec.rb

@@ -97,7 +97,7 @@ RSpec.describe 'Settings' do
 
       end_mem = @client.get('/about')['free_heap']
 
-      expect(end_mem).to be > (start_mem - 200)
+      expect(end_mem).to be_within(250).of(start_mem)
     end
   end