Permalink
Browse files

Temporary (hopefully!) hack to make tests deterministic

  • Loading branch information...
1 parent bc58db5 commit 48b2d5bc902906e49acd92b622fd68d8ea58abb4 @jeppenejsum jeppenejsum committed Jun 12, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 web/webkit/src/test/scala/net/liftweb/http/NamedCometPerTabSpec.scala
@@ -41,7 +41,11 @@ object NamedCometPerTabSpec extends Specification("NamedCometPerTabSpec Specific
doBefore {
val cometA= new CometA{override def name= Full("1")}
cometA.localSetup
+
+ // HACK! to ensure tests doesn't fail when trying to access actor before they've been registered
+ Thread.sleep(500)
}
+
"be created for a comet" in {
NamedCometListener.getDispatchersFor(Full("1")).foreach(
actor => actor.open_!.toString must startWith("net.liftweb.http.NamedCometDispatcher")

0 comments on commit 48b2d5b

Please sign in to comment.