Skip to content

Commit

Permalink
test: increase timeout for concurrent operations and simplify round-t…
Browse files Browse the repository at this point in the history
…rip assertion
  • Loading branch information
mceachen committed Nov 12, 2024
1 parent 9d89ecb commit 15474ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/async-behavior.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe("Filesystem API Async Behavior", () => {

// Test concurrent operations
describe("Concurrent Operations", () => {
jest.setTimeout(2 * TimeoutMsDefault);
jest.setTimeout(4 * TimeoutMsDefault);

it("should handle multiple concurrent getVolumeMountPoints()", async () => {
const expected = await deferredMountPoints();
Expand Down
5 changes: 1 addition & 4 deletions src/__tests__/string.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ describe("decodeOctalEscapes", () => {
});

function assertRoundTrip(input: string) {
const encoded = encodeEscapeSequences(input);
const decoded = decodeEscapeSequences(encoded);
console.log({ input, encoded, decoded });
expect(decoded).toEqual(input);
expect(decodeEscapeSequences(encodeEscapeSequences(input))).toEqual(input);
}

it("handles the full range of valid octal values", () => {
Expand Down

0 comments on commit 15474ff

Please sign in to comment.