You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I replicated batch.test.js:'should batch find documents with size option' but the tests still pass.
I even added a promise inside our callback to see if anything would go wrong, but it didn't seem to happen.
it.only('should batch find documents with size option 1',async()=>{letlist=[]awaitdb('project').batch({},{size: 1},asyncfunction(project){awaitwait()list=list.concat(project)})expect(list.length).toBe(docs.length)for(leti=0;i<n;i++){expect(docs[i].name).toEqual(list[i].name)}expect(list.length).toEqual(docs.length)})it.only('should batch find documents with size option 2',async()=>{letlist=[]awaitdb('project').batch({},{size: 2},asyncfunction(project){awaitwait()list=list.concat(project)})expect(list.length).toBe(docs.length)for(leti=0;i<n;i++){expect(docs[i].name).toEqual(list[i].name)}expect(list.length).toEqual(docs.length)})
Is there any extra information you can share to reproduce the issue?
What type of inconsistency are we experiencing?
Maybe the callback function could provide some clues.
Maybe an export from the update collection could also help reproduce the problem.
This works:
await db('update').batch({}, { size: 1 }, async function (enhet) {
but this is buggy:
await db('update').batch({}, { size: 2 }, async function (enhet) {
What is going on?
The text was updated successfully, but these errors were encountered: