Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

tests: add postgres integration tests #8

Merged
merged 2 commits into from
Aug 16, 2023
Merged

Conversation

jimlambrt
Copy link
Collaborator

@jimlambrt jimlambrt commented Aug 16, 2023

PR #7 includes WithPgPlaceholder() option(fa247ec) and we will wait for it to be merged, before updating the mql dependency in this PR and merging.

@jimlambrt jimlambrt force-pushed the jimlambrt-test-postgres branch from f105826 to 1311ddb Compare August 16, 2023 19:38
@jimlambrt
Copy link
Collaborator Author

I've merged #7 so we can merge this once it's reviewed/approved.

@jimlambrt jimlambrt merged commit 969e46e into main Aug 16, 2023
Comment on lines +31 to +36
func testDeleteUsers(t *testing.T, rw dbw.Writer) {
t.Helper()
testCtx := context.Background()
_, err := rw.Exec(testCtx, "delete from users", nil)
require.NoError(t, err)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no tests for this

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's used in the tests which would fail if it wasn't working.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see anything that calls it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And the coverage report doesn't show it being called

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove it. Ty!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants