Commit ca82922
committed
Revert "Optimize TestConfig.reset to only run when context changes"
This reverts the optimization because it broke test isolation.
Tests use Config.config.set() to override config values, and without
TestConfig.reset between tests, these changes persist and pollute
subsequent tests.
For example, tests setting max_annotations_per_resource=1 caused
other tests to fail with "AnnotationLimitExceeded" errors.1 parent 34d3c36 commit ca82922
1 file changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
| 139 | + | |
| 140 | + | |
144 | 141 | | |
145 | 142 | | |
146 | 143 | | |
| |||
0 commit comments