Skip to content

Commit

Permalink
Fix serialization tests.
Browse files Browse the repository at this point in the history
These tests would consistently fail when running 'docker build'.
  • Loading branch information
gkleiman committed Jun 14, 2017
1 parent d1b2dcb commit 3c8362d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class SerDeTest extends SpecificationWithJUnit {

"SerializerAndDeserializer" should {
"serialize and deserialize a DependencyBasedJob correctly" in {
JobDeserializer.config = null

val objectMapper = new ObjectMapper
val mod = new SimpleModule("JobModule")
mod.addSerializer(classOf[BaseJob], new JobSerializer)
Expand All @@ -30,7 +32,7 @@ class SerDeTest extends SpecificationWithJUnit {

val forcePullImage = false

var parameters = scala.collection.mutable.ListBuffer[Parameter]()
val parameters = scala.collection.mutable.ListBuffer[Parameter]()

val container = DockerContainer("dockerImage", volumes, parameters, NetworkMode.BRIDGE, forcePullImage)

Expand Down Expand Up @@ -58,6 +60,8 @@ class SerDeTest extends SpecificationWithJUnit {
}

"serialize and deserialize a ScheduleBasedJob correctly" in {
JobDeserializer.config = null

val objectMapper = new ObjectMapper
val mod = new SimpleModule("JobModule")
mod.addSerializer(classOf[BaseJob], new JobSerializer)
Expand All @@ -75,7 +79,7 @@ class SerDeTest extends SpecificationWithJUnit {
)

val forcePullImage = true
var parameters = scala.collection.mutable.ListBuffer[Parameter]()
val parameters = scala.collection.mutable.ListBuffer[Parameter]()

val container = DockerContainer("dockerImage", volumes, parameters, NetworkMode.HOST, forcePullImage)

Expand Down

0 comments on commit 3c8362d

Please sign in to comment.