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

Sequence reset doesn't respect the start_at option #427

Open
jsonmaur opened this issue Dec 8, 2022 · 0 comments
Open

Sequence reset doesn't respect the start_at option #427

jsonmaur opened this issue Dec 8, 2022 · 0 comments

Comments

@jsonmaur
Copy link

jsonmaur commented Dec 8, 2022

ExMachina.Sequence.reset/1 will always reset the index to 0 and no longer takes the start_at option into account.

iex(1)> ExMachina.sequence(:foobar, & &1, start_at: 1)
1

iex(2)> ExMachina.sequence(:foobar, & &1, start_at: 1)
2

iex(3)> ExMachina.Sequence.reset(:foobar)
:ok

iex(4)> ExMachina.sequence(:foobar, & &1, start_at: 1)
0
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