Skip to content

Commit 53f2310

Browse files
authored
Merge pull request #64 from softwaremill/jox-007
Update jox to 0.0.7
2 parents 4af5d63 + 85fab55 commit 53f2310

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ lazy val core: Project = (project in file("core"))
2020
.settings(
2121
name := "core",
2222
libraryDependencies ++= Seq(
23-
"com.softwaremill.jox" % "core" % "0.0.6",
23+
"com.softwaremill.jox" % "core" % "0.0.7",
2424
scalaTest
2525
)
2626
)

core/src/main/scala/ox/channels/Channel.scala

+1
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ trait Sink[-T] extends ChannelState:
229229
*/
230230
class Channel[T](capacity: Int) extends Source[T] with Sink[T]:
231231
protected override val delegate: JChannel[Any] = new JChannel(capacity)
232+
override def toString: String = delegate.toString
232233

233234
object Channel:
234235
/** Creates a buffered channel (when capacity is positive), or a rendezvous channel if the capacity is 0. */

core/src/test/scala/ox/channels/ChannelTest.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import java.util.concurrent.atomic.AtomicInteger
1010
import scala.jdk.CollectionConverters.*
1111

1212
class ChannelTest extends AnyFlatSpec with Matchers with Eventually {
13-
List(0).foreach { capacity =>
13+
List(0, 1, 2, 100, 10000).foreach { capacity =>
1414
s"channel with capacity $capacity" should "send and receive two spaced elements" in {
1515
val c = Channel[Int](capacity)
1616
scoped {

0 commit comments

Comments
 (0)