hedera-services
hedera-services copied to clipboard
Automate restoring throttles at end of `@HapiTest`
Problem
Multiple tests override throttle definitions but then restore to a throttles.json under test-system-files/
instead of what was previously active on the test network.
Solution
If a @LeakyHapiTest
is annotated with reason THROTTLE_OVERRIDES
, automatically take a snapshot of file 0.0.123
at the beginning of the spec; and restore it to this snapshot at the end of the test.
Alternatives
No response