Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix serving test data on windows #442

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions test/geotiff.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import serveStatic from 'serve-static';
import finalhandler from 'finalhandler';
import AbortController from 'node-abort-controller';
import { dirname } from 'path';
import { fileURLToPath } from 'url';

import { GeoTIFF, fromArrayBuffer, writeArrayBuffer, fromUrls, Pool } from '../dist-module/geotiff.js';
import { makeFetchSource } from '../dist-module/source/remote.js';
Expand All @@ -15,9 +16,9 @@ import { chunk, toArray, toArrayRecursively, range } from '../dist-module/utils.
import DataSlice from '../dist-module/dataslice.js';
import DataView64 from '../dist-module/dataview64.js';

const __dirname = dirname(new URL(import.meta.url).pathname);
const __dirname = dirname(fileURLToPath(import.meta.url));

// Set up a node server to make tiffs available at localhost:3000/test/data, and a worker pool
// Set up a node server to make tiffs available at localhost:3000/data, and a worker pool
let server = null;
let pool = null;
before(async () => {
Expand Down
Loading