Skip to content
Snippets Groups Projects
Commit c5f904ae authored by Jacob MacDonald's avatar Jacob MacDonald Committed by GitHub
Browse files

resolve symbolic links before checking temp dir location (#1605)

On mac `Directory.systemTemp` starts with `/var` which is a symlink to `/private/var`, but the temp dir created by the ScratchSpace has the full resolved path (`/private/var/...`).
parent fe8f5109
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,9 @@ void main() {
});
test('Can create and delete a scratch space', () async {
expect(p.isWithin(Directory.systemTemp.path, scratchSpace.tempDir.path),
expect(
p.isWithin(Directory.systemTemp.resolveSymbolicLinksSync(),
scratchSpace.tempDir.resolveSymbolicLinksSync()),
isTrue);
for (var id in allAssets.keys) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment