From b4314ddaf7956657e979c26d84bd432384cc8d7e Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Wed, 31 May 2023 14:40:19 +0200 Subject: [PATCH] TestConnCopyFromSlowFailRace: increase context timeout On Windows time.Sleep(time.Millisecond) will sleep for 15 milliseconds --- copy_from_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copy_from_test.go b/copy_from_test.go index 85c0ac2c..e5c4cd82 100644 --- a/copy_from_test.go +++ b/copy_from_test.go @@ -640,7 +640,7 @@ func (fs *slowFailRaceSource) Err() error { func TestConnCopyFromSlowFailRace(t *testing.T) { t.Parallel() - ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) + ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second) defer cancel() conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE"))