Oh... It does not work with embedded graph.
I tested again and without any future, the whole works.
Can't figure out why... just stuck
On Tuesday, June 10, 2014 3:00:45 PM UTC+2, Michael Azerhad wrote:
>
> I have this conceptual (Scala) code:
>
>
> "should return the total of meetings" in new MeetingContext {
> def totalCount(): Int = {
> val result = cypherQueryExecutor.iterator(
> """ MATCH (m:Meeting) RETURN COUNT(m) AS total"""
> , Map[String, AnyRef]()
> result.toList.head.asScala("total")
> }
> createMeeting.handle(meeting1CreationCommand)
> createMeeting.handle(meeting2CreationCommand)
> val result = Await.result(Future[Int](totalCount())(play.api.libs.
> concurrent.Execution.Implicits.defaultContext), Duration(10, TimeUnit.
> SECONDS)) //Note the future usage here
> result must_== 2
> }
>
>
> This well works when I use a real dabatase (embedded or REST).
>
> However, when using ImpermanentGraphDatabase, I got 0 instead of 2.
>
> Is ImpermanentGraphDatabase compatible with this kind of concurrency?
> Indeed, when I don't use any Future, I got the expected good result.
>
> Thanks a lot,
>
> Michael
>
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.