Skip to content

Commit

Permalink
add test to check the local mode for JobTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Flavio Brasil committed Mar 14, 2018
1 parent 20467aa commit c3119fb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,10 @@ class JobTestTest extends WordSpec with Matchers {
runJobTest()
} should have message (s"Failed to create tap for: ${requiredSource}, with error: requirement failed: " + TestTapFactory.sourceNotFoundError.format(requiredSource))
}
"use local mode by default" in {
JobTest(new SimpleTestJob(_)).getTestMode(true, None) match {
case m: HadoopTest => m.jobConf.get("mapreduce.framework.name") shouldBe "local"
}
}
}
}

0 comments on commit c3119fb

Please sign in to comment.