Skip to content

testhelper: ModifyEnvironment cleans after itself

Toon Claes requested to merge toon-modify-env-cleanup-test into master

Prior to this change, ModifyEnvironment was returning a function to revert the changes done. This was typically passed to defer or to t.Cleanup().

This change moves calling t.Cleanup() to the ModifyEnvironment function itself.

Merge request reports