in integrate_test/at/insert/main.go [42:63]
func main() {
initConfig()
// test: insert
tm.WithGlobalTx(context.Background(), &tm.GtxConfig{
Name: "ATSampleLocalGlobalTx",
Timeout: time.Second * 30,
}, insertData)
ctx := context.Background()
// check
if checkData(ctx) != nil {
panic("failed")
}
// wait clean undo log
time.Sleep(time.Second * 10)
if checkUndoLogData(ctx) != nil {
panic("failed")
}
}