From 2bf399c240938ba51069348f986fa5d65135a808 Mon Sep 17 00:00:00 2001 From: chick Date: Thu, 1 Aug 2019 17:04:45 -0700 Subject: Followup to PR #1142 - use scala.io.Source instead of io.Source - .toList cleaner way to force stream to be read. - clear old commented out code in ProtoBufSpec --- src/test/scala/firrtlTests/ProtoBufSpec.scala | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/test/scala') diff --git a/src/test/scala/firrtlTests/ProtoBufSpec.scala b/src/test/scala/firrtlTests/ProtoBufSpec.scala index 3d46e291..526a194c 100644 --- a/src/test/scala/firrtlTests/ProtoBufSpec.scala +++ b/src/test/scala/firrtlTests/ProtoBufSpec.scala @@ -2,8 +2,6 @@ package firrtlTests -import java.io.{ByteArrayInputStream, ByteArrayOutputStream} - import firrtl.FirrtlProtos.Firrtl import firrtl._ import firrtl.ir._ @@ -30,10 +28,6 @@ class ProtoBufSpec extends FirrtlFlatSpec { for (FirrtlResourceTest(name, dir) <- firrtlResourceTests) { s"$name" should "work with Protobuf serialization and deserialization" in { -// val stream = getClass.getResourceAsStream(s"$dir/$name.fir") -// val circuit = parse(scala.io.Source.fromInputStream(stream).getLines.mkString("\n")) -// stream.close() - val circuit = parse(FileUtils.getTextResource(s"$dir/$name.fir")) // Test ToProto and FromProto -- cgit v1.2.3