File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
modules/core/src/test/scala Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,9 @@ class LimiterSuite extends BaseSuite {
133133 TestControl .executeEmbed(prog).assertEquals(expected)
134134 }
135135
136- test(" descheduling job, interval unaffected - time limit" ) {
136+ test(
137+ " descheduling a job while blocked on the time limit should not affect the interval"
138+ ) {
137139 val prog = Limiter .start[IO ](500 .millis).use { limiter =>
138140 val job = limiter.submit(IO .monotonic)
139141 val skew = IO .sleep(10 .millis) // to ensure we queue jobs as desired
@@ -148,7 +150,9 @@ class LimiterSuite extends BaseSuite {
148150 TestControl .executeEmbed(prog).assertEquals(500 .millis)
149151 }
150152
151- test(" descheduling job, interval unaffected - concurrency limit" ) {
153+ test(
154+ " descheduling a job while blocked on the concurrency limit should not affect the interval"
155+ ) {
152156 val prog = Limiter .start[IO ](30 .millis, maxConcurrent = 1 ).use { limiter =>
153157 val job = limiter.submit(IO .monotonic <* IO .sleep(500 .millis))
154158 val skew = IO .sleep(10 .millis) // to ensure we queue jobs as desired
@@ -217,6 +221,4 @@ class LimiterSuite extends BaseSuite {
217221
218222 TestControl .executeEmbed(prog).assertEquals(interval)
219223 }
220-
221- // simple interval change test
222224}
You can’t perform that action at this time.
0 commit comments