diff --git a/src/fs.js b/src/fs.js index 483e806..3406efc 100644 --- a/src/fs.js +++ b/src/fs.js @@ -2465,7 +2465,7 @@ define(function(require) { var fs = this; var error = fs.queueOrRun( function() { - var context = fs.provider.getReadOnlyContext(); + var context = fs.provider.getReadWriteContext(); _exists(context, fs.name, path, callback); } ); diff --git a/tests/spec/adapters/adapters.general.spec.js b/tests/spec/adapters/adapters.general.spec.js index 019434d..068457f 100644 --- a/tests/spec/adapters/adapters.general.spec.js +++ b/tests/spec/adapters/adapters.general.spec.js @@ -131,7 +131,13 @@ define(["Filer", "util"], function(Filer, util) { }); }); - it("should fail when trying to write on ReadOnlyContext", function(done) { + /** + * With issue 123 (see https://github.com/js-platform/filer/issues/128) we had to + * start using readwrite contexts everywhere with IndexedDB. As such, we can't + * easily test this here, without knowing which provider we have. We test this + * in the actual providers, so this isn't really needed. Skipping for now. + */ + it.skip("should fail when trying to write on ReadOnlyContext", function(done) { var provider = createProvider(); provider.open(function(error, firstAccess) { if(error) throw error; diff --git a/tests/spec/providers/providers.indexeddb.spec.js b/tests/spec/providers/providers.indexeddb.spec.js index 6789243..47aec77 100644 --- a/tests/spec/providers/providers.indexeddb.spec.js +++ b/tests/spec/providers/providers.indexeddb.spec.js @@ -129,7 +129,11 @@ define(["Filer", "util"], function(Filer, util) { }); }); - it("should fail when trying to write on ReadOnlyContext", function(done) { + /** + * With issue 123 (see https://github.com/js-platform/filer/issues/128) we had to + * start using readwrite contexts everywhere with IndexedDB. Skipping for now. + */ + it.skip("should fail when trying to write on ReadOnlyContext", function(done) { var provider = _provider.provider; provider.open(function(error, firstAccess) { if(error) throw error;