mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Fixed ZEPPELIN-1542
Fixed flaky test
This commit is contained in:
parent
e84703d4ef
commit
48a0d8ecfa
2 changed files with 5 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue