This is an automated email from the ASF dual-hosted git repository.

zjffdu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zeppelin.git


The following commit(s) were added to refs/heads/master by this push:
     new 42cba81  [HOTFIX]. Fix JupyterUtilTest fails
42cba81 is described below

commit 42cba816f3f13130d52950bcc464a7dcb7abb6ab
Author: Jeff Zhang <zjf...@apache.org>
AuthorDate: Tue Feb 11 23:27:38 2020 +0800

    [HOTFIX]. Fix JupyterUtilTest fails
    
    (cherry picked from commit aafee4f2d8575f35635beabd25fcea36c09549cf)
---
 .../test/java/org/apache/zeppelin/jupyter/nbformat/JupyterUtilTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/zeppelin-jupyter/src/test/java/org/apache/zeppelin/jupyter/nbformat/JupyterUtilTest.java
 
b/zeppelin-jupyter/src/test/java/org/apache/zeppelin/jupyter/nbformat/JupyterUtilTest.java
index e886069..276f59c 100644
--- 
a/zeppelin-jupyter/src/test/java/org/apache/zeppelin/jupyter/nbformat/JupyterUtilTest.java
+++ 
b/zeppelin-jupyter/src/test/java/org/apache/zeppelin/jupyter/nbformat/JupyterUtilTest.java
@@ -60,7 +60,7 @@ public class JupyterUtilTest {
     System.out.println(gson.toJson(n));
     System.out.println(n.getParagraphs().size());
     assertTrue(n.getParagraphs().size() == 8);
-    assertTrue(noteName.equals(n.getName()));
+    assertTrue(n.getName().startsWith(noteName));
 
     Paragraph firstParagraph = n.getParagraphs().get(0);
     assertTrue(firstParagraph.getText().equals("%python\nimport numpy as np"));

Reply via email to