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

test/integration: allow use of this.timeout() in FullTrx tests #1402

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

alxndrsn
Copy link
Contributor

Due to use of function() in the test wrappers, this was unbound from the real test functions. This PR re-binds mocha's this to the test functions, allowing use of e.g. this.timeout(...) in individual "FullTrx" tests.

Due to use of `function()` in the test wrappers, `this` was unbound from the real test functions.  This PR re-binds mocha's `this` to the test functions, allowing use of e.g. `this.timeout(...)` in individual "FullTrx" tests.
@alxndrsn alxndrsn marked this pull request as ready for review February 14, 2025 05:36
@alxndrsn alxndrsn merged commit e7ec970 into getodk:master Feb 18, 2025
6 checks passed
@alxndrsn alxndrsn deleted the allow-timeouts-tests branch February 18, 2025 08:10
alxndrsn pushed a commit to alxndrsn/odk-central-backend that referenced this pull request Feb 19, 2025
Follow-up to getodk#1402
Noticed while investigating getodk#1403

Due to use of `function()` in the test wrappers, `this` was unbound from the real test functions.  This PR re-binds mocha's `this` to the test functions, allowing use of e.g. `this.timeout(...)` in individual tests.
alxndrsn added a commit that referenced this pull request Feb 20, 2025
Follow-up to #1402
Noticed while investigating #1403

Due to use of `function()` in the test wrappers, `this` was unbound from the real test functions.  This PR re-binds mocha's `this` to the test functions, allowing use of e.g. `this.timeout(...)` in individual tests.
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