Skip to content

Commit bc33f14

Browse files
committed
Make scala/bug#5375 test more robust to different scheduling options.
Check that all suppressed exception contain a multiple of 37, rather than checking for explicit values.
1 parent f4e0b7e commit bc33f14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

junit/src/test/scala/MiscTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class MiscTest {
7171
assert(ex.getSuppressed.size > 0)
7272
assert(ex.getSuppressed.forall(_.isInstanceOf[MultipleOf37Exception]))
7373
assert(ex.i == 37)
74-
assert(ex.getSuppressed.map(_.asInstanceOf[MultipleOf37Exception].i).toList == List(/*74,*/ 148, 259, 518))
74+
assert(ex.getSuppressed.map(_.asInstanceOf[MultipleOf37Exception].i).forall(_ % 37 == 0))
7575
case _: Throwable =>
7676
assert(false)
7777
}

0 commit comments

Comments
 (0)