File tree Expand file tree Collapse file tree 3 files changed +4
-14
lines changed
native/src/main/scala/fs2/io
shared/src/test/scala/fs2/io/file Expand file tree Collapse file tree 3 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ import scala.scalanative.unsigned._
4343private [fs2] trait ioplatform extends iojvmnative {
4444
4545 private [io] val PathStreamChunkSize =
46- 1 // FIXME https://github.com/scala-native/scala-native/issues/4431
46+ 16
4747
4848 private [fs2] def fileDescriptorPoller [F [_]: LiftIO ]: F [FileDescriptorPoller ] =
4949 IO .pollers
Original file line number Diff line number Diff line change @@ -545,18 +545,8 @@ class FilesSuite extends Fs2Suite with BaseFileSuite {
545545 Stream
546546 .resource(tempFile)
547547 .flatMap { p =>
548- Files [IO ].list(p).void.recover {
549- // java.io.UncheckedIOException is unavailable in Scala.js
550- case e : RuntimeException if isNative =>
551- e.getCause match {
552- case ex : NotDirectoryException =>
553- assertEquals(ex.getMessage, p.toString)
554- case other =>
555- fail(s " Unexpected error $other" )
556- }
557-
558- case ex : NotDirectoryException =>
559- assertEquals(ex.getMessage, p.toString)
548+ Files [IO ].list(p).void.recover { case ex : NotDirectoryException =>
549+ assertEquals(ex.getMessage, p.toString)
560550 }
561551 }
562552 .compile
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ val sbtTypelevelVersion = "0.8.1"
22addSbtPlugin(" org.typelevel" % " sbt-typelevel" % sbtTypelevelVersion)
33addSbtPlugin(" org.typelevel" % " sbt-typelevel-site" % sbtTypelevelVersion)
44addSbtPlugin(" org.scala-js" % " sbt-scalajs" % " 1.20.1" )
5- addSbtPlugin(" org.scala-native" % " sbt-scala-native" % " 0.5.8 " )
5+ addSbtPlugin(" org.scala-native" % " sbt-scala-native" % " 0.5.9 " )
66addSbtPlugin(" com.armanbilge" % " sbt-scala-native-config-brew-github-actions" % " 0.4.0" )
77addSbtPlugin(" io.github.sbt-doctest" % " sbt-doctest" % " 0.12.2" )
88addSbtPlugin(" pl.project13.scala" % " sbt-jmh" % " 0.4.8" )
You can’t perform that action at this time.
0 commit comments