Эх сурвалжийг харах

[livy] Fix BatchServletSpec test

Erick Tryzelaar 10 жил өмнө
parent
commit
f5edb6e

+ 2 - 2
apps/spark/java/livy-server/src/test/scala/com/cloudera/hue/livy/server/batches/BatchServletSpec.scala

@@ -94,13 +94,13 @@ class BatchServletSpec extends ScalatraSuite with FunSpecLike with BeforeAndAfte
         }, Duration(10, TimeUnit.SECONDS))
       }
 
-      get("/0") {
+      get("/0?from=0&size=1000") {
         status should equal (200)
         header("Content-Type") should include("application/json")
         val parsedBody = parse(body)
         parsedBody \ "id" should equal (JInt(0))
         parsedBody \ "state" should equal (JString("success"))
-        (parsedBody \ "lines").extract[List[String]] should contain ("hello world")
+        (parsedBody \ "log").extract[List[String]] should contain ("hello world")
 
         val batch = batchManager.getBatch(0)
         batch should be (defined)