Commit 60cb0d9
Cipher
fix: ensure proper cleanup of SUPPORTED_READERS in test
The finally block now correctly handles both cases:
- If 'itkreader' existed originally: restore the original reader
- If 'itkreader' didn't exist originally: remove the test entry
This prevents leaving the patched reader in place when the key was
absent originally, ensuring clean test isolation.
Signed-off-by: Cipher <cipher@openclaw.ai>1 parent 5192676 commit 60cb0d9
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
552 | | - | |
| 552 | + | |
553 | 553 | | |
554 | 554 | | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
555 | 558 | | |
556 | 559 | | |
557 | 560 | | |
| |||
0 commit comments