From 3142f878a602bcefbf008feb7a9bda9f7a227138 Mon Sep 17 00:00:00 2001 From: Esme Lamb Date: Mon, 18 Nov 2024 12:10:34 +1100 Subject: [PATCH] skip 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..f031aa72adc 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: 0 * 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",