Skip to content

Commit

Permalink
Merge pull request #318 from dongahn/fix_race
Browse files Browse the repository at this point in the history
test: Fix a race condition bug in a node exclusion test
grondo authored Apr 19, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents a6e03c2 + a973548 commit 511dbe0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions t/t1007-exclude.t
Original file line number Diff line number Diff line change
@@ -78,15 +78,15 @@ test_expect_success 'excluding a node with reservations works' '
adjust_session_info 4 &&
flux module remove sched &&
flux module load sched sched-once=true node-excl=true plugin=sched.backfill &&
timed_wait_job 5 submitted &&
flux submit -N 4 sleep 0 &&
flux submit -N 4 sleep 0 &&
timed_wait_job 5 running &&
flux submit -N 3 sleep 0 &&
flux submit -N 4 sleep 0 &&
flux submit -N 4 sleep 0 &&
flux submit -N 1 sleep 0 &&
timed_sync_wait_job 10 &&
flux wreck exclude -k cab1235 &&
state=$(flux kvs get -j $(job_kvs_path 7).state) &&
test ${state} = "complete"
state=$(flux kvs get -j $(job_kvs_path 8).state) &&
test ${state} = "submitted"
'

test_expect_success 'attempting to exclude or include an invalid node must fail' '

0 comments on commit 511dbe0

Please sign in to comment.