Skip to content

Commit dc80d12

Browse files
nbbeekendariakp
andauthored
fix: wording on hook warning
Co-authored-by: Daria Pardue <daria.pardue@mongodb.com>
1 parent 21ad026 commit dc80d12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Some special notes on how mocha works with our testing setup:
154154

155155
- `before` hooks will run even if a test is skipped by the environment it runs on.
156156
- So, for example, if your before hook does logic that can only run on a certain server version you can't depend on your test block metadata to filter for that.
157-
- `after` hooks cannot be used to clean up clients because the session leak checker currently runs its afterEach hook first.
157+
- `after` hooks cannot be used to clean up clients because the session leak checker currently runs in an `afterEach` hook, which would be executed before any `after` hook has a chance to run
158158

159159
## Testing with Special Environments
160160

0 commit comments

Comments
 (0)