From dc297155175dd75810f4a50068d1e4e415aa2fb9 Mon Sep 17 00:00:00 2001 From: Edmund Noble Date: Thu, 6 Jul 2017 21:08:03 -0400 Subject: [PATCH] Decrease stack-safety test size --- tests/src/test/scala/cats/tests/ReaderWriterStateTTests.scala | 4 ++-- tests/src/test/scala/cats/tests/StateTTests.scala | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/src/test/scala/cats/tests/ReaderWriterStateTTests.scala b/tests/src/test/scala/cats/tests/ReaderWriterStateTTests.scala index ca9781579b..5ff2536240 100644 --- a/tests/src/test/scala/cats/tests/ReaderWriterStateTTests.scala +++ b/tests/src/test/scala/cats/tests/ReaderWriterStateTTests.scala @@ -22,10 +22,10 @@ class ReaderWriterStateTTests extends CatsSuite { } test("Traversing with ReaderWriterState is stack-safe") { - val ns = (0 to 100000).toList + val ns = (0 to 70000).toList val rws = ns.traverse(_ => addLogUnit(1)) - rws.runS("context", 0).value should === (100001) + rws.runS("context", 0).value should === (70001) } test("map2 combines logs") { diff --git a/tests/src/test/scala/cats/tests/StateTTests.scala b/tests/src/test/scala/cats/tests/StateTTests.scala index a91f34dc34..c86ae6dd6b 100644 --- a/tests/src/test/scala/cats/tests/StateTTests.scala +++ b/tests/src/test/scala/cats/tests/StateTTests.scala @@ -20,9 +20,9 @@ class StateTTests extends CatsSuite { } test("traversing state is stack-safe"){ - val ns = (0 to 100000).toList + val ns = (0 to 70000).toList val x = ns.traverse(_ => add1) - x.runS(0).value should === (100001) + x.runS(0).value should === (70001) } test("State.pure and StateT.pure are consistent"){