зеркало из https://github.com/github/vitess-gh.git
test: added e2e test
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
This commit is contained in:
Родитель
72993ea1f2
Коммит
e5dbc203c2
|
@ -116,6 +116,8 @@ func StartServer(connParams, connAppDebugParams mysql.ConnParams, dbName string)
|
|||
config.SignalSchemaChangeReloadIntervalSeconds = tabletenv.Seconds(2.1)
|
||||
config.SignalWhenSchemaChange = true
|
||||
config.Healthcheck.IntervalSeconds = 0.1
|
||||
config.Oltp.TxTimeoutSeconds = 5
|
||||
config.Olap.TxTimeoutSeconds = 5
|
||||
gotBytes, _ := yaml2.Marshal(config)
|
||||
log.Infof("Config:\n%s", gotBytes)
|
||||
return StartCustomServer(connParams, connAppDebugParams, dbName, config)
|
||||
|
|
|
@ -1032,3 +1032,17 @@ func TestFailInfiniteSessions(t *testing.T) {
|
|||
client.Release())
|
||||
}
|
||||
}
|
||||
|
||||
func TestReserveQueryTimeout(t *testing.T) {
|
||||
client := framework.NewClient()
|
||||
|
||||
_, err := client.ReserveExecute("select sleep(19)", []string{"set sql_mode = ''"}, nil)
|
||||
assert.NoError(t, err)
|
||||
assert.NoError(t,
|
||||
client.Release())
|
||||
|
||||
_, err = client.ReserveStreamExecute("select sleep(19)", []string{"set sql_mode = ''"}, nil)
|
||||
assert.NoError(t, err)
|
||||
assert.NoError(t,
|
||||
client.Release())
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче