| 106 | return make_wrapper(func) |
| 107 | |
| 108 | def __del__(self): |
| 109 | if self._enabled: |
| 110 | msg = ( |
| 111 | "ERROR: client_knobs still enabled! HEARTBEAT_FREQUENCY={}, " |
| 112 | "MIN_HEARTBEAT_INTERVAL={}, KILL_CURSOR_FREQUENCY={}, " |
| 113 | "EVENTS_QUEUE_FREQUENCY={}, stack:\n{}".format( |
| 114 | common.HEARTBEAT_FREQUENCY, |
| 115 | common.MIN_HEARTBEAT_INTERVAL, |
| 116 | common.KILL_CURSOR_FREQUENCY, |
| 117 | common.EVENTS_QUEUE_FREQUENCY, |
| 118 | self._stack, |
| 119 | ) |
| 120 | ) |
| 121 | self.disable() |
| 122 | raise Exception(msg) |
| 123 | |
| 124 | |
| 125 | # Global knobs to speed up the test suite. |