* This tests checks that we don't get back to this behavior
* @see HadoopShims#newJobControl(String, org.apache.hadoop.conf.Configuration, org.apache.pig.impl.PigContext)
*/
@Test
public void testLocalModeTakesLessThan5secs() throws Exception {
PigServer pigServer = new PigServer(ExecType.LOCAL);
Data data = resetData(pigServer);
data.set("in", tuple("a"));
long t0 = System.currentTimeMillis();
pigServer.registerQuery(
"A = LOAD 'in' using mock.Storage();\n"
+ "STORE A INTO 'out' USING mock.Storage();");
long t1 = System.currentTimeMillis();
List<Tuple> list = data.get("out");
assertEquals(1, list.size());