Skip to content

Commit

Permalink
CB-5404: Fix three tests that were sensitive to existing files
Browse files Browse the repository at this point in the history
  • Loading branch information
clelland committed Nov 22, 2013
1 parent b949ac2 commit 7b5ef93
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions autotest/tests/file.tests.js
Expand Up @@ -1722,7 +1722,9 @@ describe('File API', function() {

// create a new file entry to kick off it
runs(function() {
createFile(file1, entryCallback, fail);
deleteEntry(file2, function() {
createFile(file1, entryCallback, fail);
}, fail);
});

waitsFor(function() { return entryCallback.wasCalled; }, "entryCallback never called", Tests.TEST_TIMEOUT);
Expand Down Expand Up @@ -1829,7 +1831,9 @@ describe('File API', function() {

// create a new directory entry to kick off it
runs(function() {
createDirectory(srcDir, entryCallback, fail);
deleteEntry(dstDir, function() {
createDirectory(srcDir, entryCallback, fail);
}, fail);
});

waitsFor(function() { return entryCallback.wasCalled; }, "entryCallback never called", Tests.TEST_TIMEOUT);
Expand Down Expand Up @@ -1888,7 +1892,9 @@ describe('File API', function() {

// create a new directory entry to kick off it
runs(function() {
createDirectory(srcDir, entryCallback, fail);
deleteEntry(dstDir, function() {
createDirectory(srcDir, entryCallback, fail);
}, fail);
});

waitsFor(function() { return itFileExists.wasCalled; }, "itFileExists", 10000);
Expand Down

0 comments on commit 7b5ef93

Please sign in to comment.