summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/stress/win32/file_spec.rb8
-rw-r--r--spec/support/matchers/leak.rb2
2 files changed, 2 insertions, 8 deletions
diff --git a/spec/stress/win32/file_spec.rb b/spec/stress/win32/file_spec.rb
index 22de7ecd03..caeab352f7 100644
--- a/spec/stress/win32/file_spec.rb
+++ b/spec/stress/win32/file_spec.rb
@@ -24,15 +24,9 @@ describe 'Chef::ReservedNames::Win32::File', :windows_only do
@path = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "data", "old_home_dir", "my-dot-emacs"))
end
- it "should not leak memory" do
- pending "Fix required for CHEF-5004"
- test = lambda { Chef::ReservedNames::Win32::File.symlink?(@path) }
- test.should_not leak_memory(:warmup => 50, :iterations => 100)
- end
-
it "should not leak significant memory" do
test = lambda { Chef::ReservedNames::Win32::File.symlink?(@path) }
- test.should_not leak_memory(:warmup => 50000, :iterations => 100)
+ test.should_not leak_memory(:warmup => 50000, :iterations => 50000)
end
it "should not leak handles" do
diff --git a/spec/support/matchers/leak.rb b/spec/support/matchers/leak.rb
index 908770f042..cc7d265a3c 100644
--- a/spec/support/matchers/leak.rb
+++ b/spec/support/matchers/leak.rb
@@ -23,7 +23,7 @@ module Matchers
def initialize(opts={}, &block)
@warmup = opts[:warmup] || 5
@iterations = opts[:iterations] || 100
- @variance = opts[:variance] || 1000
+ @variance = opts[:variance] || 5000
end
def failure_message_for_should