chore: disable devtunnel tests on windows (#18521)

This commit is contained in:
Dean Sheather
2025-06-24 19:01:29 +10:00
committed by GitHub
parent 9d148e9543
commit 2afd1a203e
+7
View File
@@ -11,6 +11,7 @@ import (
"net/http"
"net/http/httptest"
"net/url"
"runtime"
"strconv"
"strings"
"testing"
@@ -33,6 +34,10 @@ import (
func TestTunnel(t *testing.T) {
t.Parallel()
if runtime.GOOS == "windows" {
t.Skip("these tests are flaky on windows and cause the tests to fail with '(unknown)' and no output, see https://github.com/coder/internal/issues/579")
}
cases := []struct {
name string
version tunnelsdk.TunnelVersion
@@ -173,6 +178,7 @@ func newTunnelServer(t *testing.T) *tunnelServer {
srv := httptest.NewTLSServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if handler != nil {
handler.ServeHTTP(w, r)
return
}
w.WriteHeader(http.StatusBadGateway)
@@ -207,6 +213,7 @@ func newTunnelServer(t *testing.T) *tunnelServer {
if err == nil {
break
}
td = nil
t.Logf("failed to create tunnel server on port %d: %s", wireguardPort, err)
}
if td == nil {