diff --git a/sbt/src/sbt-test/actions/command-to-string/build.sbt b/sbt/src/sbt-test/actions/command-to-string/build.sbt index 00aeb8a65..8dc3e9a93 100644 --- a/sbt/src/sbt-test/actions/command-to-string/build.sbt +++ b/sbt/src/sbt-test/actions/command-to-string/build.sbt @@ -1,6 +1,6 @@ commands += Command.command("noop") { s => s } TaskKey[Unit]("check") := { - assert(commands.value.toString() == "List(SimpleCommand(noop))", - s"""commands should display "List(SimpleCommand(noop))" but is ${commands.value}""") + assert(commands.value.toString().contains("SimpleCommand(noop)"), + s"""commands should contain "SimpleCommand(noop)" in ${commands.value}""") }