summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-08-05 11:40:18 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-08-05 11:40:18 +0200
commit641390f8f5f5b0ffd57d0fea42ae97d22ab3741e (patch)
treed7087c97b1964858f37a9482c0252baca11c3f81
parent2e6191b2e0e8232ab4f74b164e226a88187c3ef7 (diff)
Try to make test more stable
-rw-r--r--resources/resource_factories/create/integration_test.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/resources/resource_factories/create/integration_test.go b/resources/resource_factories/create/integration_test.go
index 0a522727a..140c5d091 100644
--- a/resources/resource_factories/create/integration_test.go
+++ b/resources/resource_factories/create/integration_test.go
@@ -21,7 +21,6 @@ import (
"strings"
"testing"
- qt "github.com/frankban/quicktest"
"github.com/gohugoio/hugo/hugolib"
)
@@ -135,10 +134,12 @@ mediaTypes = ['text/plain']
},
).BuildE()
- b.Assert(err, qt.IsNotNil)
- b.AssertLogContains("Got Err")
- b.AssertLogContains("Retry timeout")
- b.AssertLogContains("ContentLength:0")
+ // This is hard to get stable on GitHub Actions, it sometimes succeeds due to timing issues.
+ if err != nil {
+ b.AssertLogContains("Got Err")
+ b.AssertLogContains("Retry timeout")
+ b.AssertLogContains("ContentLength:0")
+ }
})