Skip to content

Commit

Permalink
run fewer iterations (GHA timed out!)
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Sep 25, 2022
1 parent a9913c3 commit b60dea7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1127,13 +1127,13 @@ describe("tzlookup", function () {
}

if (globalThis.window == null) {
const iters = 100_000;
const iters = 25_000; // GHA on mac times out if this is 100k
const { Info } = require("luxon");
const { find } = require("geo-tz");
const inhabited = require("inhabited");

const locs = [];
for (let iter = 0; iter < 100_000; iter++) {
for (let iter = 0; iter < iters; iter++) {
locs.push([rnd(-90, 90), rnd(-180, 180)]);
}
function elapsed(f, num = iters) {
Expand Down Expand Up @@ -1169,7 +1169,7 @@ describe("tzlookup", function () {
it("Matches random locations", () => {
let matches = 0;
const errors = [];
for (let iter = 0; iter < 100_000; iter++) {
for (let iter = 0; iter < iters; iter++) {
const lat = rnd(-90, 90);
const lon = rnd(-180, 180);
// standard timestamp:
Expand Down

0 comments on commit b60dea7

Please sign in to comment.