TestConnCopyFromSlowFailRace: increase context timeout

On Windows time.Sleep(time.Millisecond) will sleep for 15 milliseconds
pull/1631/head
Nicola Murino 2023-05-31 14:40:19 +02:00 committed by Jack Christensen
parent 28bd5b3843
commit b4314ddaf7
1 changed files with 1 additions and 1 deletions

View File

@ -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"))