mirror of https://github.com/jackc/pgx.git
TLS with Fake Non-blocking IO test is expected to fail on Windows
parent
30d63caa6a
commit
33d4fa0fa6
|
@ -4,6 +4,7 @@ import (
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"io"
|
"io"
|
||||||
"net"
|
"net"
|
||||||
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
@ -299,8 +300,12 @@ func TestInternalNonBlockingWrite(t *testing.T) {
|
||||||
|
|
||||||
err = conn.Close()
|
err = conn.Close()
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
if runtime.GOOS == "windows" && t.Name() == "TestInternalNonBlockingWrite/TLS_over_TCP_with_Fake_Non-blocking_IO" {
|
||||||
require.NoError(t, <-errChan)
|
// 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…
Reference in New Issue