Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[thin-provisioning] another suspend test
  • Loading branch information
jthornber committed Oct 29, 2014
1 parent 860555a commit 24da8a8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lib/dmtest/tests/thin-provisioning/suspend_tests.rb
Expand Up @@ -106,6 +106,30 @@ def test_suspend_pool_concurrent_suspend
end
end
end

def test_suspend_pool_after_suspend_thin
with_standard_pool(@size) do |pool|
with_new_thins(pool, @volume_size, 0, 1) do |thin1, thin2|
thin1.pause do

pool.pause {}

timed_out = false
begin
Timeout::timeout(5) do
wipe_device(thin1, 8)
end
rescue Timeout::Error
timed_out = true
rescue
assert(false)
end

timed_out.should be_true
end
end
end
end
end

#----------------------------------------------------------------

0 comments on commit 24da8a8

Please sign in to comment.