tursodatabase / tursodatabase/libsql-client-ts
"ROLLBACK statement stops execution of batch" test failure with embedded replica
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 576
- Forks
- 69
- PR merge metrics
- No merged PRs in 30d
Description
● batch() › ROLLBACK statement stops execution of batch
expect(received).toStrictEqual(expected) // deep equality
Expected: 0
Received: 1
208 |
209 | const rs = await c.execute("SELECT COUNT(*) FROM t");
> 210 | expect(rs.rows[0][0]).toStrictEqual(0);
| ^
211 | }));
212 | });
213 |
at src/__tests__/client.test.ts:210:31
at Object.<anonymous> (src/__tests__/client.test.ts:41:13)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the failing batch() test in src/tests/client.test.ts, especially the ROLLBACK case around line 210, and run it with the embedded replica configuration. Trace how the batch and rollback are handled, then confirm the test finishes with SELECT COUNT(*) returning 0 without affecting other batch tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- sqlite, typescript
- Domain
- databases, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100