We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00a242a commit 0d446ebCopy full SHA for 0d446eb
redis_benchmarks_specification/__runner__/runner.py
@@ -3022,6 +3022,15 @@ def delete_temporary_files(
3022
print("-" * 60)
3023
test_result = False
3024
3025
+ # Clean up database after exception to prevent contamination of next test
3026
+ if args.flushall_on_every_test_end or args.flushall_on_every_test_start:
3027
+ logging.warning("Exception caught - cleaning up database with FLUSHALL")
3028
+ try:
3029
+ for r in redis_conns:
3030
+ r.flushall()
3031
+ except Exception as e:
3032
+ logging.error(f"FLUSHALL failed after exception: {e}")
3033
+
3034
# Check if user requested exit via Ctrl+C
3035
if _exit_requested:
3036
logging.info(
0 commit comments