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

feat: timeout support #128

Merged
merged 2 commits into from
Feb 26, 2025
Merged

Conversation

szkiba
Copy link
Contributor

@szkiba szkiba commented Feb 26, 2025

The exec() and query() functions wait for an unlimited amount of time for the result. This can lead to the test stalling, for example, in the event of a network problem. The API has been extended with timeout-handling counterparts of these functions: execWithTimeout() and queryWithTimeout(). The first parameter is the timeout. The timeout parameter is a duration string, a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as 300ms, -1.5h or 2h45m. Valid time units are ns, us (or µs), ms, s, m, h.

@szkiba szkiba requested a review from a team as a code owner February 26, 2025 16:28
@szkiba szkiba requested review from pablochacin and removed request for a team February 26, 2025 16:28
@szkiba szkiba linked an issue Feb 26, 2025 that may be closed by this pull request
@szkiba szkiba removed the request for review from pablochacin February 26, 2025 16:28
@szkiba szkiba merged commit 54ea4a9 into main Feb 26, 2025
25 checks passed
@szkiba szkiba deleted the 127-timeout-support-in-exec-and-query-functions branch February 26, 2025 17:05
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.

Timeout support in execWithTimeout() and queryWithTimeout() functions
1 participant