Skip to content

Commit

Permalink
Fix ConfigTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Timur Abishev committed Jan 18, 2017
1 parent 508cdb1 commit 9b657b0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ConfigTest extends WordSpec with Matchers {

Config.empty.getCascadingSerializationTokens shouldBe empty

// tokenClasses are a subset that don't include primites or arrays.
// tokenClasses are a subset that don't include primitives or arrays.
val tokenClasses = Config.default.getCascadingSerializationTokens.values.toSet
val kryoClasses = Config.default.getKryoRegisteredClasses.map(_.getName)
// Tokens are a subset of Kryo registered classes
Expand All @@ -78,7 +78,7 @@ class ConfigTest extends WordSpec with Matchers {
(kryoClasses -- tokenClasses).forall { c =>
// primitives cannot be forName'd
val prim = Set(classOf[Boolean], classOf[Byte], classOf[Short],
classOf[Int], classOf[Long], classOf[Float], classOf[Double], classOf[Char])
classOf[Int], classOf[Long], classOf[Float], classOf[Double], classOf[Char], classOf[Unit])
.map(_.getName)

prim(c) || Class.forName(c).isArray
Expand Down

0 comments on commit 9b657b0

Please sign in to comment.