Try to make test more stable

This commit is contained in:
Bjørn Erik Pedersen 2023-08-05 11:40:18 +02:00
parent 2e6191b2e0
commit 641390f8f5
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -21,7 +21,6 @@ import (
"strings" "strings"
"testing" "testing"
qt "github.com/frankban/quicktest"
"github.com/gohugoio/hugo/hugolib" "github.com/gohugoio/hugo/hugolib"
) )
@ -135,10 +134,12 @@ mediaTypes = ['text/plain']
}, },
).BuildE() ).BuildE()
b.Assert(err, qt.IsNotNil) // This is hard to get stable on GitHub Actions, it sometimes succeeds due to timing issues.
b.AssertLogContains("Got Err") if err != nil {
b.AssertLogContains("Retry timeout") b.AssertLogContains("Got Err")
b.AssertLogContains("ContentLength:0") b.AssertLogContains("Retry timeout")
b.AssertLogContains("ContentLength:0")
}
}) })