mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-24 17:35:01 +01:00
util/optionaldeadline: disable scheduler latency-sensitive tests in CircleCI
This commit is contained in:
parent
12503dc55a
commit
a3d010c5f0
@ -9,9 +9,11 @@ import (
|
|||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/zrepl/zrepl/util/chainlock"
|
"github.com/zrepl/zrepl/util/chainlock"
|
||||||
|
"github.com/zrepl/zrepl/util/zreplcircleci"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestContextWithOptionalDeadline(t *testing.T) {
|
func TestContextWithOptionalDeadline(t *testing.T) {
|
||||||
|
zreplcircleci.SkipOnCircleCI(t, "test relies on predictably low scheduler latency")
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
cctx, enforceDeadline := ContextWithOptionalDeadline(ctx)
|
cctx, enforceDeadline := ContextWithOptionalDeadline(ctx)
|
||||||
@ -72,6 +74,7 @@ func TestContextWithOptionalDeadlineNegativeDeadline(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestContextWithOptionalDeadlineParentCancellation(t *testing.T) {
|
func TestContextWithOptionalDeadlineParentCancellation(t *testing.T) {
|
||||||
|
zreplcircleci.SkipOnCircleCI(t, "test relies on predictably low scheduler latency")
|
||||||
|
|
||||||
pctx, cancel := context.WithCancel(context.Background())
|
pctx, cancel := context.WithCancel(context.Background())
|
||||||
cctx, enforceDeadline := ContextWithOptionalDeadline(pctx)
|
cctx, enforceDeadline := ContextWithOptionalDeadline(pctx)
|
||||||
|
Loading…
Reference in New Issue
Block a user