diff options
Diffstat (limited to 'src/test/scala/firrtlTests/ProtoBufSpec.scala')
| -rw-r--r-- | src/test/scala/firrtlTests/ProtoBufSpec.scala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/scala/firrtlTests/ProtoBufSpec.scala b/src/test/scala/firrtlTests/ProtoBufSpec.scala index 7a0c3eeb..3d46e291 100644 --- a/src/test/scala/firrtlTests/ProtoBufSpec.scala +++ b/src/test/scala/firrtlTests/ProtoBufSpec.scala @@ -30,8 +30,11 @@ 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")) +// 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 val protobuf = proto.ToProto.convert(circuit) |
