mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Added test case with back-to-back notices
This commit is contained in:
parent
e96d3743b4
commit
d916469510
1 changed files with 3 additions and 2 deletions
|
@ -10,7 +10,7 @@ redef enum Notice::Type += {
|
|||
# The second notice needs to be scheduled due to how the notice framework
|
||||
# uses the event queue.
|
||||
|
||||
event second_notice()
|
||||
event third_notice()
|
||||
{
|
||||
NOTICE([$note=Test_Notice, $msg="another test", $identifier="static"]);
|
||||
}
|
||||
|
@ -18,6 +18,7 @@ event second_notice()
|
|||
event zeek_init()
|
||||
{
|
||||
NOTICE([$note=Test_Notice, $msg="test", $identifier="static"]);
|
||||
schedule 1msec { second_notice() };
|
||||
NOTICE([$note=Test_Notice, $msg="test again", $identifier="static"]);
|
||||
schedule 1msec { third_notice() };
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue