Fix flaky tests (#2324)

* Fix flaky test (There were open connections to the server left after the test finished)

* fix test that's happening on the end of the minute

* remove focus testing
This commit is contained in:
Florent Vilmart
2016-07-19 00:43:34 -04:00
committed by Drew
parent 2ba724938f
commit f310e6678e
2 changed files with 19 additions and 17 deletions

View File

@@ -337,7 +337,8 @@ describe('rest create', () => {
expect(actual.getFullYear()).toEqual(expected.getFullYear());
expect(actual.getMonth()).toEqual(expected.getMonth());
expect(actual.getDate()).toEqual(expected.getDate());
expect(actual.getMinutes()).toEqual(expected.getMinutes());
// less than a minute, if test happen at the wrong time :/
expect(actual.getMinutes() - expected.getMinutes() <= 1).toBe(true);
done();
});