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:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user