From d37c863fdbe99095b89089957b5a235dd46029f9 Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Sun, 18 Aug 2024 08:17:01 -0700 Subject: [PATCH] adjust a test to pass on both 2.13.14 and 15 --- compat/src/test/scala/test/scala/collection/LazyListTest.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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