From a3d010c5f0eb1fb0202a6099277ab63beea6b74b Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Thu, 30 Dec 2021 14:41:06 +0100 Subject: [PATCH] util/optionaldeadline: disable scheduler latency-sensitive tests in CircleCI --- util/optionaldeadline/optionaldeadline_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/optionaldeadline/optionaldeadline_test.go b/util/optionaldeadline/optionaldeadline_test.go index 3717461..40dfaa2 100644 --- a/util/optionaldeadline/optionaldeadline_test.go +++ b/util/optionaldeadline/optionaldeadline_test.go @@ -9,9 +9,11 @@ import ( "github.com/stretchr/testify/require" "github.com/zrepl/zrepl/util/chainlock" + "github.com/zrepl/zrepl/util/zreplcircleci" ) func TestContextWithOptionalDeadline(t *testing.T) { + zreplcircleci.SkipOnCircleCI(t, "test relies on predictably low scheduler latency") ctx := context.Background() cctx, enforceDeadline := ContextWithOptionalDeadline(ctx) @@ -72,6 +74,7 @@ func TestContextWithOptionalDeadlineNegativeDeadline(t *testing.T) { } func TestContextWithOptionalDeadlineParentCancellation(t *testing.T) { + zreplcircleci.SkipOnCircleCI(t, "test relies on predictably low scheduler latency") pctx, cancel := context.WithCancel(context.Background()) cctx, enforceDeadline := ContextWithOptionalDeadline(pctx)