Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(test/basic): assert result of con.object_idletime with equal or less than 1 #714

Merged
merged 1 commit into from Nov 8, 2022

Conversation

0xWOF
Copy link
Contributor

@0xWOF 0xWOF commented Nov 8, 2022

Changes

  • assert result of con.object_idletime with equal or less than 1 instead of equal with 0

Why

  • Result of con.object_idletime is affected by machine. So test is failed intermittently.

Potential Risk

  • if con.object_idletime has bug that return 1 when real value is 0, then this is can't catch the bug.

closes #713

…ess than 1

Result of con.object_idletime is mostly 0. But when machine is slow, it can be 1 or even more.
This patch can reduce possibility of test failure because of machine performance not bug of code.
@djc djc merged commit e4c33cc into redis-rs:main Nov 8, 2022
@0xWOF 0xWOF deleted the fix/ci branch November 8, 2022 16:29
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.

test function test_object_commands of test_basic.rs is failed intermittently
2 participants