Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Wrap time consuming example with eventually clause

  • Loading branch information...
commit e2e89309626b4a24bf5aea55e698e3e30d3af35e 1 parent b11eaee
@indrajitr indrajitr authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 core/util/src/test/scala/net/liftweb/util/JsonParserSpec.scala
View
6 core/util/src/test/scala/net/liftweb/util/JsonParserSpec.scala
@@ -88,7 +88,7 @@ object JsonParserSpec extends Specification("JsonParser Specification") {
val longArray = "[" + (1 to 100000).map(i => '"'+i.toString+'"').mkString(", ") + "]"
val p2 = JSONParser.parse(longArray)
- p2.isDefined must be(true)
+ p2.isDefined must be(true).eventually
}
"Parse doubles" in {
@@ -103,7 +103,7 @@ object JsonParserSpec extends Specification("JsonParser Specification") {
p2.open_! must_== -51.348484
}
- "Parse negative longs" in {
+ "Parse negative longs" in {
val p2 = JSONParser.parse("-517272833222")
p2.isDefined must be(true)
p2.open_! must_== -517272833222L
@@ -127,7 +127,6 @@ object JsonParserSpec extends Specification("JsonParser Specification") {
}
-
"-0.5033" in {
val p2 = JSONParser.parse(
"""-0.5033""")
@@ -136,7 +135,6 @@ object JsonParserSpec extends Specification("JsonParser Specification") {
}
-
"complex JSON objects" in {
val p2 = JSONParser.parse(
"""{"command":"setPoint","params":{"mf":
Please sign in to comment.
Something went wrong with that request. Please try again.