Skip to content

[Fix]: fix assertion and error messages in test_correctness_minimal#31

Merged
kituro-lin merged 1 commit into
mainfrom
fix/correctness-minimal-assertion-bug
Apr 15, 2026
Merged

[Fix]: fix assertion and error messages in test_correctness_minimal#31
kituro-lin merged 1 commit into
mainfrom
fix/correctness-minimal-assertion-bug

Conversation

@kituro-lin

Copy link
Copy Markdown
Collaborator

In SingleNodePolling test, the Get() assertion was inverted:

  • Get() returns value length (>0) on success, negative error code on failure. The assertion kv_ret < 0 incorrectly expected failure, causing the test to always fail when Get() succeeds (returns 3072 = data_size).
  • Fix: kv_ret < 0kv_ret > 0
  • Also fix misleading error message strings for both Put and Get assertions to describe the expected (success) outcome.

In SingleNodePolling test, the Get() assertion was inverted:
- Get() returns value length (>0) on success, negative error code on
  failure. The assertion `kv_ret < 0` incorrectly expected failure,
  causing the test to always fail when Get() succeeds (returns 3072
  = data_size).
- Fix: `kv_ret < 0` → `kv_ret > 0`
- Also fix misleading error message strings for both Put and Get
  assertions to describe the expected (success) outcome.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@kituro-lin
kituro-lin merged commit e3401ac into main Apr 15, 2026
2 checks passed
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