var time = use('time')

return {
    test_parseq: function() {
        var tree = {
          id: 100,
          children: [
            {
              id: 101,
              children: [
                { id: 102, children: [] },
                { id: 103, children: [] }
              ]
            },
            {
              id: 104,
              children: [
                { id: 105, children: [] }
              ]
            }
          ]
        }

        var st = time.number()
        var actor = null

        $start(e => {
          if (actor) return
          actor = e.actor
          send(actor, tree, (result, reason) => {
            if (reason)
              log.console(reason)
            else
              log.console(result)

            log.console(`took ${time.number()-st} secs`)
          });
        }, "tests/comments_actor")
    }
}
