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_CUR...)

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

msg flow.start 

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

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 - st...)

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

Was this useful?    

By: Razie | 2016-10-26 .. 2022-06-17 | Tags: story , dsl , engine , check , sanity

Viewed 338 times ( | History | Print ) this page.

You need to log in to post a comment!

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