Skip to content

Commit

Permalink
set faster warmup time on e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: Esme Lamb <dlamb@slack-corp.com>
  • Loading branch information
dedelala committed Nov 18, 2024
1 parent 61d4b71 commit 50a9211
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go/test/endtoend/vtgateproxy/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

Expand All @@ -188,6 +189,7 @@ type VtgateProxyProcess struct {
MySQLPort int
ExtraArgs []string
VerifyURL string
WarmupTime time.Duration

proc *exec.Cmd
exit chan error
Expand All @@ -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",
Expand Down

0 comments on commit 50a9211

Please sign in to comment.