zeek/testing/btest/language/timeout.zeek
Jon Siwek a994be9eeb Merge remote-tracking branch 'origin/topic/seth/zeek_init'
* origin/topic/seth/zeek_init:
  Some more testing fixes.
  Update docs and tests for bro_(init|done) -> zeek_(init|done)
  Implement the zeek_init handler.
2019-04-19 11:24:29 -07:00

19 lines
260 B
Text

# @TEST-EXEC: unset BRO_DNS_FAKE && bro -b %INPUT >out
# @TEST-EXEC: btest-diff out
event zeek_init()
{
local h1: addr = 1.2.3.4;
when ( local h1name = lookup_addr(h1) )
{
print "lookup successful";
}
timeout 3 secs
{
print "timeout";
}
}