Skip to content

Commit 6567601

Browse files
committed
refactor: wip
1 parent f44086c commit 6567601

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/utils/src/lib/wal-sharded.unit.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('ShardedWal', () => {
4848
// The groupId is auto-generated and used in the shard path
4949
// Normalize path before regex matching to handle OS-specific separators
5050
expect(osAgnosticPath(shard.getPath())).toMatch(
51-
/^\/test\/shards\/\d{8}-\d{6}-\d{3}\/trace\.\d{8}-\d{6}-\d{3}(?:\.\d+){3}\.log$/,
51+
/^<CWD>\/shards\/\d{8}-\d{6}-\d{3}\/trace\.\d{8}-\d{6}-\d{3}(?:\.\d+){3}\.log$/,
5252
);
5353
expect(shard.getPath()).toEndWithPath('.log');
5454
});
@@ -59,7 +59,7 @@ describe('ShardedWal', () => {
5959
});
6060
const shard = sw.shard();
6161
expect(shard.getPath()).toStartWithPath(
62-
'/test/shards/20231114-221320-000/trace.20231114-221320-000.10001',
62+
'<CWD>/shards/20231114-221320-000/trace.20231114-221320-000.10001',
6363
);
6464
expect(shard.getPath()).toEndWithPath('.log');
6565
});

0 commit comments

Comments
 (0)