mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 11:08:20 +00:00
Try to fix a rare broker test instability
This commit is contained in:
parent
c89c09fda3
commit
13483e4892
3 changed files with 9 additions and 11 deletions
|
@ -3,10 +3,7 @@
|
|||
# @TEST-EXEC: btest-bg-run recv "bro -B broker -b ../recv.bro >recv.out"
|
||||
# @TEST-EXEC: btest-bg-run send "bro -B broker -b ../send.bro >send.out"
|
||||
|
||||
# @TEST-EXEC: $SCRIPTS/wait-for-file recv/got-event 30 || (btest-bg-wait -k 1 && false)
|
||||
# @TEST-EXEC: kill $(cat recv/.pid)
|
||||
# @TEST-EXEC: $SCRIPTS/wait-for-pid $(cat recv/.pid) 10 || (btest-bg-wait -k 1 && false)
|
||||
# @TEST-EXEC: echo 0 >recv/.exitcode
|
||||
# @TEST-EXEC: $SCRIPTS/wait-for-pid $(cat recv/.pid) 30 || (btest-bg-wait -k 1 && false)
|
||||
|
||||
# @TEST-EXEC: btest-bg-run recv2 "bro -B broker -b ../recv.bro >recv2.out"
|
||||
# @TEST-EXEC: btest-bg-wait 30
|
||||
|
@ -60,12 +57,7 @@ const test_topic = "bro/test/my_topic";
|
|||
event my_event(i: count)
|
||||
{
|
||||
print "receiver got event", i;
|
||||
|
||||
if ( i == 1 )
|
||||
# In the first case, terminate via `kill` from btest command.
|
||||
system("touch got-event");
|
||||
else
|
||||
terminate();
|
||||
terminate();
|
||||
}
|
||||
|
||||
event bro_init()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue