mirror of
https://github.com/jackc/pgx.git
synced 2025-05-31 11:42:24 +00:00
TLS with Fake Non-blocking IO test is expected to fail on Windows
This commit is contained in:
parent
30d63caa6a
commit
33d4fa0fa6
@ -4,6 +4,7 @@ import (
|
||||
"crypto/tls"
|
||||
"io"
|
||||
"net"
|
||||
"runtime"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
@ -299,8 +300,12 @@ func TestInternalNonBlockingWrite(t *testing.T) {
|
||||
|
||||
err = conn.Close()
|
||||
require.NoError(t, err)
|
||||
|
||||
require.NoError(t, <-errChan)
|
||||
if runtime.GOOS == "windows" && t.Name() == "TestInternalNonBlockingWrite/TLS_over_TCP_with_Fake_Non-blocking_IO" {
|
||||
// this test is expected to fail on Windows see https://github.com/golang/go/issues/58764
|
||||
require.Error(t, <-errChan)
|
||||
} else {
|
||||
require.NoError(t, <-errChan)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user