From 50a92116c55a5df32f5396a7a6c0f3e87388b786 Mon Sep 17 00:00:00 2001 From: Esme Lamb Date: Mon, 18 Nov 2024 12:10:34 +1100 Subject: [PATCH] set faster warmup time on e2e tests Signed-off-by: Esme Lamb --- go/test/endtoend/vtgateproxy/main_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/go/test/endtoend/vtgateproxy/main_test.go b/go/test/endtoend/vtgateproxy/main_test.go index 375d658df51..6ea03a43a54 100644 --- a/go/test/endtoend/vtgateproxy/main_test.go +++ b/go/test/endtoend/vtgateproxy/main_test.go @@ -168,6 +168,7 @@ func NewVtgateProxyProcess(logDir, vtgateHostsFile, affinity, balancerType strin GrpcPort: grpcPort, MySQLPort: mySQLPort, VerifyURL: "http://" + net.JoinHostPort("localhost", strconv.Itoa(httpPort)) + "/debug/vars", + WarmupTime: 3 * time.Second, } } @@ -188,6 +189,7 @@ type VtgateProxyProcess struct { MySQLPort int ExtraArgs []string VerifyURL string + WarmupTime time.Duration proc *exec.Cmd exit chan error @@ -207,6 +209,7 @@ func (vt *VtgateProxyProcess) Setup() error { "--affinity_value", vt.AffinityValue, "--num_connections", strconv.Itoa(vt.NumConnections), "--log_dir", vt.LogDir, + "--warmup_time", vt.WarmupTime.String(), "--v", "999", "--mysql_auth_server_impl", "none", "--alsologtostderr",