Commit 121712af authored by Kevin Daudt's avatar Kevin Daudt 💻

testing/traefik: skip tests that broke with go 1.16

See: #12444
parent 4450e207
......@@ -21,6 +21,7 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/containous/traefik/releases/
traefik.toml
rate-limiter-test.patch
skip-flaky-tests.patch
skip-broken-tests-go-1.16.patch
"
builddir="$srcdir"
......@@ -69,4 +70,5 @@ sha512sums="b7a63b854ae4609f0b4b0090dd5847edc7a68254c67d1ba49d57a55ec1310dada46b
872c671a67ef050cd5e798a1190653fede4e499dd29123a073e49ae551b308ac43b11973f472eef1a36775bdfbcbcd3926956b68d8362f8c5674d117b2f36dd4 traefik.confd
7dff62db55362433fe33a69bfb556e6f285a033aaaab46ea970ae4ee1b19a4b0d6b25bf5523d4dc6b40d26922945fd1263ae8e53d295d6bf7f18ea1477a9e4d5 traefik.toml
af896c6200f7eedbc321c8f8fc0f789bcde73c94cfc9a38ff33c4da2aa8c867b2f082803778a606776db424bea6913f3fc7f26d4b24b026ee0fe194ff70647e3 rate-limiter-test.patch
21c533e8696928bf2b6bfededa65b026695fa75d4862bec3716dc08dfd9d899c42a296568d1a444938d0cfbd19b521f740b50fec7c6cd10d0c410f97ecc4c69b skip-flaky-tests.patch"
21c533e8696928bf2b6bfededa65b026695fa75d4862bec3716dc08dfd9d899c42a296568d1a444938d0cfbd19b521f740b50fec7c6cd10d0c410f97ecc4c69b skip-flaky-tests.patch
591521e585d77740b075862d5265f364a36850715be7b6aaee4566f5691ed6f623c22175189f672836da7d586c5cb48a6d5a37156dc1b2b7b6cd93163878df06 skip-broken-tests-go-1.16.patch"
Description: These tests started to fail on Go 1.16
URL: https://github.com/traefik/traefik/issues/7907
diff --git a/pkg/middlewares/retry/retry_test.go b/pkg/middlewares/retry/retry_test.go
index 47e97ef..31408f5 100644
--- a/pkg/middlewares/retry/retry_test.go
+++ b/pkg/middlewares/retry/retry_test.go
@@ -86,20 +86,6 @@ func TestRetry(t *testing.T) {
wantResponseStatus: http.StatusOK,
amountFaultyEndpoints: 2,
},
- {
- desc: "max attempts exhausted delivers the 5xx response",
- config: dynamic.Retry{Attempts: 3},
- wantRetryAttempts: 2,
- wantResponseStatus: http.StatusBadGateway,
- amountFaultyEndpoints: 3,
- },
- {
- desc: "max attempts exhausted delivers the 5xx response with backoff",
- config: dynamic.Retry{Attempts: 3, InitialInterval: ptypes.Duration(time.Microsecond * 50)},
- wantRetryAttempts: 2,
- wantResponseStatus: http.StatusBadGateway,
- amountFaultyEndpoints: 3,
- },
}
backendServer := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment