Fixed ZEPPELIN-1542

Fixed flaky test
This commit is contained in:
Jongyoul Lee 2016-10-19 18:08:13 +09:00
parent e84703d4ef
commit 48a0d8ecfa
2 changed files with 5 additions and 2 deletions

View file

@ -113,7 +113,7 @@ public class ZeppelinRestApiTest extends AbstractTestRestApi {
assertTrue(paragraphs.size() > 0);
assertEquals(paragraphText, paragraphs.get(0).get("text"));
//
ZeppelinServer.notebook.removeNote(sourceNoteID, null);
ZeppelinServer.notebook.removeNote(sourceNoteID, anonymous);
}
@Test
@ -426,6 +426,7 @@ public class ZeppelinRestApiTest extends AbstractTestRestApi {
paragraph.setConfig(config);
paragraph.setText("%sh sleep 1");
paragraph.setAuthenticationInfo(anonymous);
note.persist(anonymous);
String noteID = note.getId();
@ -511,7 +512,7 @@ public class ZeppelinRestApiTest extends AbstractTestRestApi {
}
@Test
public void testCronJobs() throws InterruptedException, IOException{
public void testJobs() throws InterruptedException, IOException{
// create a note and a paragraph
Note note = ZeppelinServer.notebook.createNote(anonymous);

View file

@ -438,6 +438,8 @@ public class Note implements Serializable, ParagraphJobListener {
}
if (p.getStatus().isRunning()) {
info.put("progress", String.valueOf(p.progress()));
} else {
info.put("progress", String.valueOf(100));
}
return info;
}