Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mkljakubowski committed Dec 31, 2024
1 parent 7bdf35a commit 280e126
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ class FileInputParser {
protocol: Protocol,
importedSchemaOrProtocols: Set[Either[Schema, Protocol]]) = {
val imported = importedSchemaOrProtocols.flatMap {
case Left(importedSchema) => Set(importedSchema)
case Left(importedSchema) => List(importedSchema)
case Right(importedProtocol) => importedProtocol.getTypes().asScala
}
val types = protocol.getTypes().asScala.toSet
val localTypes = types -- imported
val types = protocol.getTypes().asScala.toList
val localTypes = types.filterNot(imported.contains)
protocol.setTypes(localTypes.asJava)
protocol
}
Expand Down
2 changes: 1 addition & 1 deletion avrohugger-core/src/test/scala/util/Util.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ object Util {
val rightValue: String = right.value
val rightAsList = if (rightValue.contains("\r\n")) rightValue.split("\r\n") else rightValue.split("\n")

val res = leftAsList === rightAsList
val res = leftAsList.mkString("\n") === rightAsList.mkString("\n")
result(res.isSuccess, res.message, res.message, right)
}
}
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val avroVersion = "1.11.4"

lazy val commonSettings = Seq(
organization := "com.julianpeeters",
version := "3.0-MJ",
version := "2.9.0",
ThisBuild / versionScheme := Some("semver-spec"),
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature"),
Test / scalacOptions ++= Seq("-Yrangepos"),
Expand Down

0 comments on commit 280e126

Please sign in to comment.