Skip to content

Commit cbb7ee2

Browse files
committed
test: skip flaky tests on GH CI
Signed-off-by: Jérôme Benoit <[email protected]>
1 parent e445aa7 commit cbb7ee2

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

tests/pools/selection-strategies/selection-strategies.test.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,7 +1639,7 @@ describe('Selection strategies test suite', () => {
16391639

16401640
it({
16411641
name: 'Verify WEIGHTED_ROUND_ROBIN strategy can be run in a dynamic pool',
1642-
ignore: Deno.build.os === 'linux',
1642+
ignore: Deno.env.get('CI') != null && Deno.build.os === 'linux',
16431643
fn: async () => {
16441644
const pool = new DynamicThreadPool(
16451645
min,
@@ -1728,7 +1728,7 @@ describe('Selection strategies test suite', () => {
17281728
it({
17291729
name:
17301730
'Verify WEIGHTED_ROUND_ROBIN strategy can be run in a dynamic pool with median runtime statistic',
1731-
ignore: Deno.build.os === 'linux',
1731+
ignore: Deno.env.get('CI') != null && Deno.build.os === 'linux',
17321732
fn: async () => {
17331733
const pool = new DynamicThreadPool(
17341734
min,
@@ -2077,7 +2077,7 @@ describe('Selection strategies test suite', () => {
20772077
it({
20782078
name:
20792079
'Verify INTERLEAVED_WEIGHTED_ROUND_ROBIN strategy can be run in a dynamic pool',
2080-
ignore: Deno.build.os === 'linux',
2080+
ignore: Deno.env.get('CI') != null && Deno.build.os === 'linux',
20812081
fn: async () => {
20822082
const pool = new DynamicThreadPool(
20832083
min,

tests/pools/thread/dynamic.test.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,14 @@ describe({
181181
WorkerChoiceStrategies,
182182
)
183183
) {
184+
// Interleaved weighted round robin strategy makes that test flaky on CI
185+
if (
186+
Deno.env.get('CI') != null &&
187+
workerChoiceStrategy ===
188+
WorkerChoiceStrategies.INTERLEAVED_WEIGHTED_ROUND_ROBIN
189+
) {
190+
continue
191+
}
184192
const pool = new DynamicThreadPool(
185193
0,
186194
max,

0 commit comments

Comments
 (0)