flow_story Pub

Testing the $flow

We'll start a flow with inner parallel operations and figure out how long it took...

send::  msg ctx.set  (start=DIESEL_CURMILLIS)

val DUR:Number="500"=500 val total:Number="0"=0

msg flow.start 

send::  msg ctx.set  (stop=DIESEL_CURMILLIS)

Overall duration should be around 3DUR, so less than 4DUR if the engine is not too busy...

send::  msg ctx.echo  (s=stop, st=start)

send::  msg ctx.set  (duration=(stop - start))

expect::  (duration < (4 * DUR))
expect::  (total is 4)


Was this useful?    

By: Razie | 2016-10-26 .. 2021-01-23 | Tags: story , dsl , engine , check


Viewed 224 times ( | Print ) this page.

You need to log in to post a comment!

© Copyright DieselApps, 2012-2021, all rights reserved.