Start iteration with rewind() in ChangeStream::key() test
Previously, iteration started with next(), so the first element's key was 1. Iteration should being with rewind() and the initial key should be zero. With this change, we're still testing that the key is only incremented when next() successfully increments.
Showing
Please
register
or
sign in
to comment