From 417599b4634fe6a64e389a672771e9d72713a030 Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Mon, 8 Jan 2018 10:17:38 -0500 Subject: [PATCH] Fixing test --- citest/build.sbt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/citest/build.sbt b/citest/build.sbt index 81b1532b6..3ff4eae20 100644 --- a/citest/build.sbt +++ b/citest/build.sbt @@ -16,12 +16,9 @@ lazy val root = (project in file(".")) assert(xs(4) startsWith "[info] The current project") assert(xs(5) startsWith "[info] The current project is built against Scala 2.12.4") - val ys = IO.readLines(file("err.txt")).toVector + val ys = IO.readLines(file("err.txt")).toVector.distinct - println(ys) - - assert(ys.size == 2) + assert(ys.size == 1, s"ys has more than one item: $ys") assert(ys(0) startsWith "Java HotSpot(TM) 64-Bit Server VM warning") - assert(ys(1) startsWith "Java HotSpot(TM) 64-Bit Server VM warning") } )