mirror of https://github.com/go-gorm/gorm.git
Change default timeout interval to avoid test fail on CI
This commit is contained in:
parent
308d22b166
commit
e98a4a3a4e
|
@ -12,7 +12,7 @@ import (
|
|||
func TestPreparedStmt(t *testing.T) {
|
||||
tx := DB.Session(&gorm.Session{PrepareStmt: true})
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 500*time.Millisecond)
|
||||
defer cancel()
|
||||
txCtx := tx.WithContext(ctx)
|
||||
|
||||
|
|
Loading…
Reference in New Issue