Skip to content

Commit

Permalink
fix(services): repair flaky e2e test (#298)
Browse files Browse the repository at this point in the history
This commit fixes a flaky end to end test that could randomly choose a
non-existent service to update.
  • Loading branch information
jniles authored and sfount committed Apr 13, 2016
1 parent bbfd517 commit 86fe31a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/test/e2e/services/services.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*global it, element, by, beforeEach, inject, browser */
/* global element, by, browser */

var chai = require('chai');
var expect = chai.expect;
Expand All @@ -16,7 +16,7 @@ describe('Services Module', function () {
};

var DEFAULT_SERVICE = 4;
var SERVICE_RANK = helpers.random(DEFAULT_SERVICE);
var SERVICE_RANK = 4;

var DELETE_SUCCESS = 1;
var DELETE_ERROR = 3;
Expand Down Expand Up @@ -96,4 +96,4 @@ describe('Services Module', function () {
browser.switchTo().alert().dismiss();
FormUtils.exists(by.id('default'), true);
});
});
});

0 comments on commit 86fe31a

Please sign in to comment.