mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Add sleeps to configuration_update test for better reliability.
Not the greatest solution, but makes the 3 bro processes more likely to run sequentially so that the controller2 process doesn't happen to be scheduled before the controller process. In that case, the controllee gets the shutdown request before the configuration update. FreeBSD especially seemed to schedule them the unintended way frequently.
This commit is contained in:
parent
63a550fa9e
commit
a10093b620
1 changed files with 2 additions and 0 deletions
|
@ -1,7 +1,9 @@
|
|||
# @TEST-SERIALIZE: comm
|
||||
#
|
||||
# @TEST-EXEC: btest-bg-run controllee BROPATH=$BROPATH:.. bro %INPUT frameworks/control/controllee Communication::listen_port=65531/tcp
|
||||
# @TEST-EXEC: sleep 5
|
||||
# @TEST-EXEC: btest-bg-run controller BROPATH=$BROPATH:.. bro %INPUT test-redef frameworks/control/controller Control::host=127.0.0.1 Control::host_port=65531/tcp Control::cmd=configuration_update
|
||||
# @TEST-EXEC: sleep 5
|
||||
# @TEST-EXEC: btest-bg-run controller2 BROPATH=$BROPATH:.. bro %INPUT frameworks/control/controller Control::host=127.0.0.1 Control::host_port=65531/tcp Control::cmd=shutdown
|
||||
# @TEST-EXEC: btest-bg-wait 10
|
||||
# @TEST-EXEC: btest-diff controllee/.stdout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue