Skip to content

Commit 690cbdf

Browse files
committed
[CB-7422][File Tests] Use proper fileSystem to create fullPath
The filesystem uses root filesystem (PERSISTENT) to compare with a TEMPORARY filesystem. This is wrong, if TEMPORARY, temp_root, should be used to assign value to fullPath.
1 parent 73a5173 commit 690cbdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2921,7 +2921,7 @@ exports.defineAutoTests = function () {
29212921
var file1 = "entry.copy.file1b",
29222922
file2 = "entry.copy.file2b",
29232923
sourceEntry,
2924-
fullPath = joinURL(root.fullPath, file2),
2924+
fullPath = joinURL(temp_root.fullPath, file2),
29252925
validateFile = function (entry) {
29262926
expect(entry).toBeDefined();
29272927
expect(entry.isFile).toBe(true);
@@ -2990,7 +2990,7 @@ exports.defineAutoTests = function () {
29902990
var file1 = "entry.copy.file1b",
29912991
file2 = "entry.copy.file2b",
29922992
sourceEntry,
2993-
fullPath = joinURL(root.fullPath, file2),
2993+
fullPath = joinURL(temp_root.fullPath, file2),
29942994
validateFile = function (entry) {
29952995
expect(entry).toBeDefined();
29962996
expect(entry.isFile).toBe(true);

0 commit comments

Comments
 (0)