Skip to content

Commit 3f2f260

Browse files
committed
[jvm] Fudge tests for execution order of Promise
1 parent 872502d commit 3f2f260

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

S17-promise/allof.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ plan 13;
4141
isa-ok $all, Promise, 'allof gives a Promise';
4242
my $b = $all.result; # block
4343
isa-ok $b, Bool, 'get a bool of the result';
44+
#?rakudo.jvm todo 'wrong order'
4445
is ~$a, "0 1 2 3 4 5 6 7 8 9", 'got the right order';
4546
}
4647

S17-promise/at.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ plan 4;
1616
sleep 1;
1717
@order.push(2);
1818
await $p1, $p2;
19+
#?rakudo.jvm todo 'got: "3 1 2", RT #123520'
1920
is @order, (1, 2, 3), 'Scheduler did not cause things to run in wrong order';
2021
}
2122

S17-promise/basic.t

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@ plan 41;
7373

7474
# RT #122803
7575
{
76-
is_run q[ await ^9 .map: { start { say "start"; sleep 1; say "end" } };],
77-
{ :0status, :err(''), :out("start\n" x 9 ~ "end\n" x 9) },
78-
"promises execute asynchronously [try $_]"
79-
for ^4;
76+
for ^4 {
77+
#?rakudo.jvm todo 'RT #122803'
78+
is_run q[ await ^9 .map: { start { say "start"; sleep 1; say "end" } };],
79+
{ :0status, :err(''), :out("start\n" x 9 ~ "end\n" x 9) },
80+
"promises execute asynchronously [try $_]"
81+
}
8082
}
8183

8284
# RT #129753

S17-promise/in.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ plan 4;
1414
sleep 1;
1515
@order.push(2);
1616
sleep 2;
17+
#?rakudo.jvm todo 'got: "3, 1, 2", RT #123520'
1718
is @order, (1, 2, 3), 'Scheduler did not cause things to run in wrong order';
1819
}
1920

0 commit comments

Comments
 (0)