Skip to content

Conversation

@bpholt
Copy link
Member

@bpholt bpholt commented Dec 12, 2025

Fixes #1237.

BTW, I wonder if this Postgres source file contains the full list of command completions? If so, we could use that as a source to try to add any remaining completions we're missing.

def sessionTest[A](name: String, readTimeout: Duration = Duration.Inf)(fa: Session[IO] => IO[A])(implicit loc: Location): Unit =
test(name)(session(readTimeout).use(fa))

def sessionTestWithCleanup[A](name: String,
Copy link
Member Author

Choose a reason for hiding this comment

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

I got annoyed that the DROP ROLE commands that clean up many of the command tests don't run if the test fails, so I added this new method to run the cleanup steps in a guarantee block. If we like this, we can move others to this style over time.

@mpilquist mpilquist merged commit 31802fd into typelevel:series/0.6.x Dec 13, 2025
14 checks passed
@bpholt bpholt deleted the more-completions branch December 13, 2025 18:27
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