@@ -109,12 +109,12 @@ class FetchBatchingTests extends FetchSpec {
109109
110110 val io = Fetch .runLog[IO ](fetch)
111111
112- io.map( { case (log, result) =>
112+ io.map { case (log, result) =>
113113 result shouldEqual List (1 , 2 , 3 , 4 , 5 )
114114 log.rounds.size shouldEqual 1
115115 totalFetched(log.rounds) shouldEqual 5
116116 totalBatches(log.rounds) shouldEqual 3
117- }) .unsafeToFuture()
117+ }.unsafeToFuture()
118118 }
119119
120120 " A large fetch to a datasource with a maximum batch size is split and executed in parallel" in {
@@ -123,12 +123,12 @@ class FetchBatchingTests extends FetchSpec {
123123
124124 val io = Fetch .runLog[IO ](fetch)
125125
126- io.map( { case (log, result) =>
126+ io.map { case (log, result) =>
127127 result shouldEqual List (1 , 2 , 3 , 4 , 5 )
128128 log.rounds.size shouldEqual 1
129129 totalFetched(log.rounds) shouldEqual 5
130130 totalBatches(log.rounds) shouldEqual 3
131- }) .unsafeToFuture()
131+ }.unsafeToFuture()
132132 }
133133
134134 " Fetches to datasources with a maximum batch size should be split and executed in parallel and sequentially when using productR" in {
@@ -138,12 +138,12 @@ class FetchBatchingTests extends FetchSpec {
138138
139139 val io = Fetch .runLog[IO ](fetch)
140140
141- io.map( { case (log, result) =>
141+ io.map { case (log, result) =>
142142 result shouldEqual List (1 , 2 , 3 , 4 , 5 )
143143 log.rounds.size shouldEqual 1
144144 totalFetched(log.rounds) shouldEqual 5 + 5
145145 totalBatches(log.rounds) shouldEqual 3 + 3
146- }) .unsafeToFuture()
146+ }.unsafeToFuture()
147147 }
148148
149149 " Fetches to datasources with a maximum batch size should be split and executed in parallel and sequentially when using productL" in {
@@ -153,12 +153,12 @@ class FetchBatchingTests extends FetchSpec {
153153
154154 val io = Fetch .runLog[IO ](fetch)
155155
156- io.map( { case (log, result) =>
156+ io.map { case (log, result) =>
157157 result shouldEqual List (1 , 2 , 3 , 4 , 5 )
158158 log.rounds.size shouldEqual 1
159159 totalFetched(log.rounds) shouldEqual 5 + 5
160160 totalBatches(log.rounds) shouldEqual 3 + 3
161- }) .unsafeToFuture()
161+ }.unsafeToFuture()
162162 }
163163
164164 " A large (many) fetch to a datasource with a maximum batch size is split and executed in sequence" in {
@@ -167,12 +167,12 @@ class FetchBatchingTests extends FetchSpec {
167167
168168 val io = Fetch .runLog[IO ](fetch)
169169
170- io.map( { case (log, result) =>
170+ io.map { case (log, result) =>
171171 result shouldEqual List (1 , 2 , 3 )
172172 log.rounds.size shouldEqual 1
173173 totalFetched(log.rounds) shouldEqual 3
174174 totalBatches(log.rounds) shouldEqual 2
175- }) .unsafeToFuture()
175+ }.unsafeToFuture()
176176 }
177177
178178 " A large (many) fetch to a datasource with a maximum batch size is split and executed in parallel" in {
@@ -181,12 +181,12 @@ class FetchBatchingTests extends FetchSpec {
181181
182182 val io = Fetch .runLog[IO ](fetch)
183183
184- io.map( { case (log, result) =>
184+ io.map { case (log, result) =>
185185 result shouldEqual List (1 , 2 , 3 )
186186 log.rounds.size shouldEqual 1
187187 totalFetched(log.rounds) shouldEqual 3
188188 totalBatches(log.rounds) shouldEqual 2
189- }) .unsafeToFuture()
189+ }.unsafeToFuture()
190190 }
191191
192192 " Very deep fetches don't overflow stack or heap" in {
@@ -203,8 +203,8 @@ class FetchBatchingTests extends FetchSpec {
203203 ids.toList.traverse(fetchBatchedDataBigId[IO ])
204204 )
205205
206- io.map( { case (log, result) =>
206+ io.map { case (log, result) =>
207207 result shouldEqual ids.map(_.toString)
208- }) .unsafeToFuture()
208+ }.unsafeToFuture()
209209 }
210210}
0 commit comments