Skip to content

Commit

Permalink
Add a few flaky markers
Browse files Browse the repository at this point in the history
  • Loading branch information
joerick committed Sep 29, 2024
1 parent a0ce312 commit 8fbb4e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_stack_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from pyinstrument import stack_sampler

from .util import do_nothing
from .util import do_nothing, flaky_in_ci


class SampleCounter:
Expand All @@ -23,6 +23,7 @@ def test_create():
assert sampler is stack_sampler.get_stack_sampler()


@flaky_in_ci
def test_get_samples():
sampler = stack_sampler.get_stack_sampler()
counter = SampleCounter()
Expand All @@ -45,6 +46,7 @@ def test_get_samples():
assert len(sampler.subscribers) == 0


@flaky_in_ci
def test_multiple_samplers():
sampler = stack_sampler.get_stack_sampler()
counter_1 = SampleCounter()
Expand Down Expand Up @@ -86,6 +88,7 @@ def test_multiple_samplers_async_error():
sampler.unsubscribe(counter_1.sample)


@flaky_in_ci
def test_multiple_contexts():
sampler = stack_sampler.get_stack_sampler()

Expand Down

0 comments on commit 8fbb4e9

Please sign in to comment.