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

circular(false) with loopCount: Infinity does not match documented behavior #578

Open
Wilhansen opened this issue Apr 7, 2022 · 0 comments

Comments

@Wilhansen
Copy link

Wilhansen commented Apr 7, 2022

Describe the bug

According to the documentation of circular: https://element.flood.io/docs/api/test-data#testdatasource

Passing false will to disable circular data loading, causing test to complete after 1 loop of test data.

but when running the code, it will just loop while printing "Test data exhausted, consider making it circular?" indefinitely when the data is exhausted.

The behavior can be traced here:

if (!validTestData()) {

To Reproduce

run the code in this section: https://element.flood.io/docs/api/test-data#testdatasource
with sample data.

Expected behavior

The test will iterate through all the data in the test data and halt (i.e. complete).

Additional context

The documented behavior is needed in cases where tests simply requires going through all the data in the list once.

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

No branches or pull requests

1 participant