Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't pass the PouchDB test suite in the browser #24

Open
nolanlawson opened this issue May 3, 2015 · 1 comment
Open

Doesn't pass the PouchDB test suite in the browser #24

nolanlawson opened this issue May 3, 2015 · 1 comment

Comments

@nolanlawson
Copy link
Contributor

@calvinmetcalf I thought you might be interested in this. Could be a knex issue; I'm not quite sure.

I started a new project, pouchdb-sqldown, basically just to demo how to use a custom *DOWN adapter in the browser with PouchDB (they're browserifiable now - yay! pouchdb/pouchdb#3786). I chose sqldown because it was the only browserifiable *down adapter that we hadn't already shipped as a PouchDB plugin. 😃

In any case, I can get the tests up and running (using a patched version of knex - see knex/knex#810), but still the tests fail. In Chrome I'm seeing:

SQLError: could not prepare statement (1 no such table: _pouch_testdb)

The tests fail on the following test:

http://127.0.0.1:8000/test/index.html?grep=test.basics.js-local%20Modify%20a%20doc%20with%20incorrect%20rev

To reproduce:

hub clone nolanlawson/pouchdb-sqldown
cd pouchdb-sqldown
npm install
npm run dev
# open up http://127.0.0.1:8000/test/index.html

I don't have the time or the interest to look into this, but I thought you might be curious about this. The error is somewhere deep in the Promise stack; I glanced at it, but didn't try to solve it. Screenshot:

screenshot 2015-05-03 19 37 15

@calvinmetcalf
Copy link
Owner

Will look into it thanks

On Sun, May 3, 2015, 7:38 PM Nolan Lawson notifications@github.com wrote:

@calvinmetcalf https://github.com/calvinmetcalf I thought you might be
interested in this. Could be a knex issue; I'm not quite sure.

I started a new project, pouchdb-sqldown, basically just to demo how to
use a custom *DOWN adapter in the browser with PouchDB (they're
browserifiable now - yay! pouchdb/pouchdb#3786
pouchdb/pouchdb#3786). I chose sqldown because
it was the only browserifiable *down adapter that we hadn't already shipped
as a PouchDB plugin. [image: 😃]

In any case, I can get the tests up and running (using a patched version
of knex - see knex/knex#810
knex/knex#810), but still the tests fail.
In Chrome I'm seeing:

SQLError: could not prepare statement (1 no such table: _pouch_testdb)

The tests fail on the following test:

http://127.0.0.1:8000/test/index.html?grep=test.basics.js-local%20Modify%20a%20doc%20with%20incorrect%20rev

To reproduce:

hub clone nolanlawson/pouchdb-sqldown
cd pouchdb-sqldown
npm install
npm run dev

open up http://127.0.0.1:8000/test/index.html

I don't have the time or the interest to look into this, but I thought you
might be curious about this. The error is somewhere deep in the Promise
stack; I glanced at it, but didn't try to solve it. Screenshot:

[image: screenshot 2015-05-03 19 37 15]
https://cloud.githubusercontent.com/assets/283842/7447498/da3f2b6c-f1cb-11e4-856d-69d6c86c7dd6.png


Reply to this email directly or view it on GitHub
#24.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants