diff --git a/compat/src/test/scala/test/scala/collection/LazyListTest.scala b/compat/src/test/scala/test/scala/collection/LazyListTest.scala index c0137cef..c13e4da4 100644 --- a/compat/src/test/scala/test/scala/collection/LazyListTest.scala +++ b/compat/src/test/scala/test/scala/collection/LazyListTest.scala @@ -381,7 +381,7 @@ class LazyListTest { try { finite.force fail("Expected RuntimeException to be thrown") - } catch { case e: RuntimeException => assertTrue(e.getMessage.contains("self-referential")) } + } catch { case e: RuntimeException => assertTrue(e.getMessage.contains("self-refer")) } } assertNoStackOverflow { class L { val ll: LazyList[Nothing] = LazyList.empty #::: ll }; (new L).ll