Skip to content

Draft: Allow the scan test to accept a range of result counts.

Peter Adams requested to merge PeterAdams-A/RediStack:scantestrange into master

The scan test has been unreliable.

Expected Results

Scan test to always pass in various environments.

Actual Results

Test sometimes fails.

Steps to Reproduce

  1. Examine recent CI runs.

Background

The scan test has been unreliable due to differences in returned sizes. The requested count is only advisory, the server may ignore and return an alternative count. See discussion on https://gitlab.com/Mordil/RediStack/-/issues/23#note_567176355

Accept a count in the range 6-9 when requesting 8.

Checklist:

  • Copyright headers in new files (see CONTRIBUTING.md)
  • Unit test case to prevent the bug in the future
Edited by Peter Adams

Merge request reports