From effe81bba22b6a68393a78b29dc0c34c7faf9cc0 Mon Sep 17 00:00:00 2001 From: Evan Zelkowitz Date: Tue, 7 Apr 2020 19:53:53 +0000 Subject: [PATCH] Add ready checks for the microserver and ATS test instances. This fixed failing autest runs for nghttp on 8.1.x, adding to master first --- tests/gold_tests/h2/nghttp.test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/gold_tests/h2/nghttp.test.py b/tests/gold_tests/h2/nghttp.test.py index 2e149a67dd9..f0f6e182a3d 100644 --- a/tests/gold_tests/h2/nghttp.test.py +++ b/tests/gold_tests/h2/nghttp.test.py @@ -78,7 +78,7 @@ tr.Processes.Default.Command = "nghttp -v --no-dep 'https://127.0.0.1:{0}/post' --trailer 'foo: bar' -d 'post_body'".format( ts.Variables.ssl_port) tr.Processes.Default.ReturnCode = 0 -tr.Processes.Default.StartBefore(microserver) -tr.Processes.Default.StartBefore(Test.Processes.ts) +tr.Processes.Default.StartBefore(microserver, ready=When.PortOpen(microserver.Variables.Port)) +tr.Processes.Default.StartBefore(Test.Processes.ts, ready=When.PortOpen(ts.Variables.ssl_port)) tr.Processes.Default.Streams.stdout = "gold/nghttp_0_stdout.gold" tr.StillRunningAfter = microserver