Fix non-deterministic test in manager/unmanage

This commit is contained in:
Thibault Jouan 2015-04-21 06:59:07 +00:00
parent ad67456c52
commit c7bd6ea28a
2 changed files with 3 additions and 2 deletions

View File

@ -6,5 +6,5 @@ Feature: layout client unmanagement
And a second window is mapped
Scenario: maps another window
When the second window requests to be unmapped
When the second window is unmapped
Then the first window must be mapped

View File

@ -19,8 +19,9 @@ When /^the window requests to be unmapped$/ do
x_window_unmap
end
When /^the (\w+) window requests to be unmapped$/ do |ident|
When /^the (\w+) window is unmapped$/ do |ident|
x_window_unmap ident: ident
uhwm_wait_output /unmanag.+#{x_client(ident: ident).name}/i
end
When /^a window requests to be mapped (\d+) times$/ do |times|