hedera-services icon indicating copy to clipboard operation
hedera-services copied to clipboard

Automate restoring throttles at end of `@HapiTest`

Open tinker-michaelj opened this issue 6 months ago • 0 comments

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

tinker-michaelj avatar Aug 05 '24 22:08 tinker-michaelj