Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Dec 22, 2024
1 parent caddc21 commit 7c63688
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mount_point.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import { jest } from "@jest/globals";
import { getVolumeMountPoints } from "..";
import { times, uniq } from "./array.js";
import { TimeoutError } from "./async.js";
import { MountPoint } from "./mount_point.js";
import { isLinux, isWindows } from "./platform.js";
import { sortByLocale } from "./string.js";
Expand Down Expand Up @@ -33,7 +32,7 @@ describe("Filesystem Metadata", () => {
// < timeouts on windows are handled by the native bindings, and don't know about the magick "timeoutMs = 1" test option.
it("should timeout mount points if timeoutMs = 1", async () => {
await expect(getVolumeMountPoints({ timeoutMs: 1 })).rejects.toThrow(
TimeoutError,
/TimeoutError/, // < we can't check for instanceOf TimeoutError because it's imported from the tsup bundle
);
});
}
Expand Down

0 comments on commit 7c63688

Please sign in to comment.