Skip to content

Commit e8ed8dd

Browse files
committed
Fix the expected html value for test
1 parent facc682 commit e8ed8dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spark/src/test/java/org/apache/zeppelin/spark/SparkRInterpreterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class SparkRInterpreterTest {
4646
private static final Logger LOGGER = LoggerFactory.getLogger(SparkRInterpreterTest.class);
4747

4848
private static final String MOCK_RSCALA_RESULT = "<body> Mock R Result </body>";
49-
private static final String MOCK_R_INTERPRETER_RESULT = MOCK_RSCALA_RESULT.substring(MOCK_RSCALA_RESULT.indexOf("<body>") + 7, MOCK_RSCALA_RESULT.indexOf("</body>") - 1)
49+
private static final String MOCK_R_INTERPRETER_RESULT = "Mock R Result"
5050
.replaceAll("<code>", "").replaceAll("</code>", "")
5151
.replaceAll("\n\n", "")
5252
.replaceAll("\n", "<br>")

0 commit comments

Comments
 (0)