]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
Skip flakey server tests on GitHub Action on Windows
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 26 Oct 2022 07:29:55 +0000 (09:29 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 26 Oct 2022 07:29:55 +0000 (09:29 +0200)
commands/server_test.go

index 7a39723733f9b0536cd672452c9b322c10c1c7f4..2840cdf20c2c09aec12f1678baba5df33fa54c6a 100644 (file)
@@ -25,6 +25,7 @@ import (
 
        "github.com/gohugoio/hugo/config"
        "github.com/gohugoio/hugo/helpers"
+       "github.com/gohugoio/hugo/htesting"
        "golang.org/x/net/context"
        "golang.org/x/sync/errgroup"
 
@@ -184,6 +185,10 @@ baseURL="https://example.org"
 }
 
 func TestServerBugs(t *testing.T) {
+       // TODO(bep) this is flaky on Windows on GH Actions.
+       if htesting.IsGitHubAction() && runtime.GOOS == "windows" {
+               t.Skip("skipping on windows")
+       }
        c := qt.New(t)
 
        for _, test := range []struct {