Skip to content
Permalink
Browse files
[CB-4062] Fix for test that does not wait properly.
  • Loading branch information
filmaj committed Jul 4, 2013
1 parent 9817938 commit def11a3c3352d80ecf049d00fef0432d92db60ed
Showing 1 changed file with 5 additions and 2 deletions.
@@ -819,8 +819,11 @@ describe('File API', function() {
}),
fail = createFail('DirectoryEntry');

// create directory to kick off it
root.getDirectory(dirName, {create:true}, getDir, fail);
// create directory to kick it off
runs(function() {
root.getDirectory(dirName, {create:true}, getDir, fail);
});
waitsFor(function() { return getDir.wasCalled; }, "getDir never called", Tests.TEST_TIMEOUT);
});
it("file.spec.31 DirectoryEntry.getDirectory: get DirectoryEntry for invalid path", function() {
var dirName = "de:invalid:path",

0 comments on commit def11a3

Please sign in to comment.