Fix initial events handling for mux worker
* Rename `before_wait' worker callback to `before_watch'; * Setup `before_watch' callback in the runner, handling events with the manager; * Test the mux worker with a cucumber scenario.
This commit is contained in:
15
features/workers/mux.feature
Normal file
15
features/workers/mux.feature
Normal file
@@ -0,0 +1,15 @@
|
||||
Feature: multiplexing worker
|
||||
|
||||
Scenario: processes initial events
|
||||
Given uhwm is running with options -d -w mux
|
||||
Then the output must match /xevent/i at least 2 times
|
||||
|
||||
Scenario: processes generated events
|
||||
Given a run control file with:
|
||||
"""
|
||||
key(:f) { puts 'testing_worker_read' }
|
||||
"""
|
||||
And uhwm is running with options -d -w mux
|
||||
When I press the alt+f key 3 times
|
||||
And I quit uhwm
|
||||
Then the output must match /(testing_worker_read)/ exactly 3 times
|
Reference in New Issue
Block a user