From e98a4a3a4ef602a20803c1fc4deb3f8bdbf84fec Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Tue, 1 Sep 2020 14:01:59 +0800 Subject: [PATCH] Change default timeout interval to avoid test fail on CI --- tests/prepared_stmt_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/prepared_stmt_test.go b/tests/prepared_stmt_test.go index b81318d3..af610165 100644 --- a/tests/prepared_stmt_test.go +++ b/tests/prepared_stmt_test.go @@ -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)