Skip to content

Conversation

@sttk
Copy link
Owner

@sttk sttk commented Aug 22, 2025

Since a 'Data exists' error occurred when test cases ran concurrently, attempting to operate on the same key in the same database, I changed it so that each test case runs with a different database number.

@sttk sttk requested a review from Copilot August 22, 2025 11:35
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses concurrency issues in Redis-based test cases by ensuring each test uses a different Redis database number to prevent "Data exists" errors when tests run simultaneously.

  • Assigns unique Redis database numbers (0, 1, 2, 3) to different test functions
  • Converts helper functions to standalone test functions with proper #[test] attributes
  • Removes the combined test function that was calling multiple test scenarios sequentially

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@sttk sttk merged commit 91d102a into main Aug 22, 2025
3 checks passed
@sttk sttk deleted the fix_test_failures branch August 22, 2025 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants