Skip to content

Commit

Permalink
t0015-cron.t: enhance cron sync test
Browse files Browse the repository at this point in the history
Enhance check for cron module loaded with sync enabled.
Ensure both sync event and sync_epsilon match what was
passed on the cmdline.
  • Loading branch information
grondo committed Aug 13, 2017
1 parent 5449c9d commit 62f0052
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion t/t0015-cron.t
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,10 @@ test_expect_success 'flux module remove cron' '
flux module remove cron
'
test_expect_success 'module load with sync' '
flux module load cron sync=cron.sync
flux module load cron sync=cron.sync sync_epsilon=0.025
'
test_expect_success 'sync and sync_epsilon are set as expected' '
flux cron sync | grep "cron\.sync.*epsilon=0.025"
'
test_expect_success 'tasks do not run until sync event' '
id=$(flux_cron event t.cron.trigger flux event pub t.cron.complete)
Expand Down

0 comments on commit 62f0052

Please sign in to comment.