From: Cyril Brulebois Date: Wed, 15 Feb 2023 09:55:43 +0000 (+0100) Subject: Skip flakky tests X-Git-Tag: archive/raspbian/1.4.2-3+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=59c381d8cd5ae9cf1a59b8e1c5251599508f6429;p=crowdsec.git Skip flakky tests Both aim at checking performance, and might error out when the underlying system is “slow”. That was the case for the first test on arm64 (KO on arm-arm-01, OK on arm-ubc-03) and on armel (KO on arm-ubc-06, OK on arm-conova-02), and for the second test on mipsel (KO on mipsel-aql-02). The same might happen on ci.debian.net, so disable both tests everywhere. Gbp-Pq: Name 0013-skip-flakky-tests.patch --- diff --git a/pkg/apiserver/apic_test.go b/pkg/apiserver/apic_test.go index a06a750..3a97c79 100644 --- a/pkg/apiserver/apic_test.go +++ b/pkg/apiserver/apic_test.go @@ -699,6 +699,7 @@ func TestAPICPush(t *testing.T) { } func TestAPICSendMetrics(t *testing.T) { + t.Skip() tests := []struct { name string duration time.Duration diff --git a/pkg/time/rate/rate_test.go b/pkg/time/rate/rate_test.go index 6df9412..a212ce1 100644 --- a/pkg/time/rate/rate_test.go +++ b/pkg/time/rate/rate_test.go @@ -175,6 +175,7 @@ func TestSimultaneousRequests(t *testing.T) { } func TestLongRunningQPS(t *testing.T) { + t.Skip() if testing.Short() { t.Skip("skipping in short mode") }