www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 0570c2edc7d47762e3281fe4ea36f284c4f9b1e2
parent 3a0e0cb0886bdcd105ec03d8bac12fff5079e2f7
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu,  9 Feb 2017 02:17:09 -0500

Fix test failure after 27cb099c825

Attachments are now saved before the connector server responds, because they're
no longer started out-of-band in saveItems(). This is necessary to prevent
transaction badness during imports, but it may not be what we want for the
connector, so we may want to revisit this after further testing.

Diffstat:
Mtest/tests/server_connectorTest.js | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/tests/server_connectorTest.js b/test/tests/server_connectorTest.js @@ -133,7 +133,7 @@ describe("Connector Server", function () { ); var promise = waitForItemEvent('add'); - var req = yield Zotero.HTTP.request( + var reqPromise = Zotero.HTTP.request( 'POST', connectorServerPath + "/connector/saveItems", { @@ -160,6 +160,9 @@ describe("Connector Server", function () { // Wait until indexing is done yield waitForItemEvent('refresh'); + + var req = yield reqPromise; + assert.equal(req.status, 201); });