Try to fix intermittent Travis error

This commit is contained in:
Dan Stillman 2016-04-15 05:14:52 -04:00
parent c5716a395f
commit 0fca78bb7e

View file

@ -211,14 +211,13 @@ describe("Zotero.ItemTreeView", function() {
itemsView = zp.itemsView;
var items = [];
var num = 10;
var num = 6;
for (let i = 0; i < num; i++) {
let item = createUnsavedDataObject('item');
item.addToCollection(collection.id);
yield item.saveTx();
items.push(item);
}
yield Zotero.Promise.delay(2000);
assert.equal(itemsView.rowCount, num);
// Select the third item in the list