mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
btest/broker/remote_event_ts_compat: Replace 15 second sleep with wait-for-file
Just so the test runs faster when it can.
This commit is contained in:
parent
e3373d31f0
commit
8777c1522d
1 changed files with 3 additions and 2 deletions
|
@ -7,8 +7,7 @@
|
|||
# @TEST-REQUIRES: TOPIC=/zeek/my_topic python3 client.py check
|
||||
#
|
||||
# @TEST-EXEC: TOPIC=/zeek/my_topic btest-bg-run server "zeek %INPUT >output"
|
||||
# Leave room for Zeek to start up, which can be slow when using -O ZAM
|
||||
# @TEST-EXEC: sleep 15
|
||||
# @TEST-EXEC: wait-for-file server/ready 20
|
||||
# @TEST-EXEC: TOPIC=/zeek/my_topic btest-bg-run client "python3 ../client.py >output"
|
||||
#
|
||||
# @TEST-EXEC: btest-bg-wait 45
|
||||
|
@ -29,6 +28,8 @@ event zeek_init()
|
|||
Broker::subscribe(getenv("TOPIC"));
|
||||
Broker::listen("127.0.0.1", to_port(getenv("BROKER_PORT")));
|
||||
set_network_time(double_to_time(42.0));
|
||||
|
||||
system("touch ready");
|
||||
}
|
||||
|
||||
event Broker::peer_added(endpoint: Broker::EndpointInfo, msg: string)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue