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<-300 val total:Number<-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  (duration<-(stop - start))

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


Was this useful?    

By: Razie | 2016-10-26 .. 2017-05-01 | Tags: story , dsl , engine


Viewed 117 times ( | Print ) this page.

You need to log in to post a comment!

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