Skip to content

Commit

Permalink
Increase timeouts for tests (fail when run under istanbul coverage ch…
Browse files Browse the repository at this point in the history
…ecker)
  • Loading branch information
Rogier Schouten committed Jan 30, 2016
1 parent f00422e commit fb254ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/test-datetime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1626,7 +1626,8 @@ describe("DateTime", (): void => {
});

describe("unixUtcMillis()", (): void => {
it("should trim the cache", (): void => {
it("should trim the cache", function(): void {
this.timeout(10000);
for (var i = 0; i < 2 * datetimeFuncs.UTC_MILLIS_CACHE.MAX_CACHE_SIZE; ++i) {
var d = new DateTime(i, TimeZone.utc());
expect(d.unixUtcMillis()).to.equal(i);
Expand Down
2 changes: 1 addition & 1 deletion test/test-period.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ describe("Period", function(): void {

describe("Period(X, 2, X, RegularLocalTime).findFirst()", (): void => {
it("should handle 2 Millisecond", function (): void {
this.timeout(30 * 1000);
this.timeout(60e3);
// note the target time is 2AM during DST backward, so 2AM exists twice.
// Because we want to increase local time, we expect to go from the FIRST 02:59:59 to 03:00:00, skippint the second 02:00:00
expect((new Period(new DateTime("1970-01-01T12:00:00 Europe/Amsterdam"), 2, TimeUnit.Millisecond, PeriodDst.RegularLocalTime))
Expand Down

0 comments on commit fb254ab

Please sign in to comment.