ci: hold stdin open for the last smoke reply
This commit is contained in:
1 parent
a79e87f400
commit
c69299c810
1 file changed
+7
-1
@@ -7,6 +7,9 @@ in the caller, not here.
|
||||
|
||||
import json
|
||||
import sys
|
||||
import time
|
||||
|
||||
HOLD = 1.5
|
||||
|
||||
CALL = {
|
||||
"jsonrpc": "2.0",
|
||||
@@ -34,7 +37,10 @@ MESSAGES = [
|
||||
def main() -> int:
|
||||
for message in MESSAGES:
|
||||
sys.stdout.write(json.dumps(message) + "\n")
|
||||
sys.stdout.flush()
|
||||
sys.stdout.flush()
|
||||
time.sleep(0.2)
|
||||
# Keep stdin open until the last reply lands, then signal EOF by exiting.
|
||||
time.sleep(HOLD)
|
||||
return 0
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user