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

Improve MustNotInsert test assertions #243

Merged
merged 2 commits into from
Jan 18, 2024

Conversation

andrew-farries
Copy link
Collaborator

Update the MustNotInsert test assertion to be stricter. It now takes a specific Postgres error code and fails the test if any other error code is received.

Update all the usages to specify which error code they expect to see.

Add a stricter version of `MustNotInsert` which expects the insert
operation to fail with a specific error code.
@andrew-farries andrew-farries merged commit b2e93a9 into main Jan 18, 2024
24 checks passed
@andrew-farries andrew-farries deleted the improve-must-not-insert-assertions branch January 18, 2024 14:46
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

Successfully merging this pull request may close these issues.

2 participants