mirror of https://github.com/jackc/pgx.git
TestConnCopyFromSlowFailRace: increase context timeout
On Windows time.Sleep(time.Millisecond) will sleep for 15 millisecondspull/1631/head
parent
28bd5b3843
commit
b4314ddaf7
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue