TLS with Fake Non-blocking IO test is expected to fail on Windows

pull/1631/head
Nicola Murino 2023-05-27 22:56:59 +02:00 committed by Jack Christensen
parent 30d63caa6a
commit 33d4fa0fa6
1 changed files with 7 additions and 2 deletions

View File

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