mirror of
https://github.com/jackc/pgx.git
synced 2025-04-27 13:14:32 +00:00
TestConnCopyFromSlowFailRace: increase context timeout
On Windows time.Sleep(time.Millisecond) will sleep for 15 milliseconds
This commit is contained in:
parent
28bd5b3843
commit
b4314ddaf7
@ -640,7 +640,7 @@ func (fs *slowFailRaceSource) Err() error {
|
|||||||
func TestConnCopyFromSlowFailRace(t *testing.T) {
|
func TestConnCopyFromSlowFailRace(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
|
ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE"))
|
conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user