Skip to content

Commit

Permalink
Fix flapping status light test
Browse files Browse the repository at this point in the history
I unintentionally introduced a flapping test in #6817. The
draining status of the node will be randomly chosen and
that flag takes precedence over eligibility. This forces
the draining flag to be false rather than random so the
test should no longer flap.

See here for an example failure:
https://circleci.com/gh/hashicorp/nomad/26368
  • Loading branch information
backspace committed Dec 12, 2019
1 parent 83d9225 commit c26b51a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/tests/acceptance/client-detail-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ module('Acceptance | client detail', function(hooks) {

test('the status light indicates when the node is ineligible for scheduling', async function(assert) {
node = server.create('node', {
isDraining: false,
schedulingEligibility: 'ineligible',
});

Expand Down

0 comments on commit c26b51a

Please sign in to comment.