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

Make sure row_event happens before save_event #7

Merged
merged 3 commits into from
Nov 19, 2015
Merged

Conversation

roback
Copy link
Member

@roback roback commented Nov 19, 2015

close #5

Row events should be received before save events.

close #5
The client always emits an initial save_position event when it starts.

Related to #5
@@ -24,6 +24,9 @@ def self.wait_for_row_events(ecco_client, count: 1, &block)
end

def self.wait_for_save_position_events(ecco_client, count: 1, &block)
# Take into account the initial save event that is emitted when client starts
count += 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if I call this method twice in the same test? Won't it "overstep"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, the client is started and stopped each time you call the method.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok! Because we start and stop here, got it.

@walro
Copy link
Contributor

walro commented Nov 19, 2015

Left a comment concerning a comment, otherwise it looks good!

@walro
Copy link
Contributor

walro commented Nov 19, 2015

LGTM, I think we can release as 0.4.1?

@roback
Copy link
Member Author

roback commented Nov 19, 2015

0.4.1 sounds good since there are no new features.

roback added a commit that referenced this pull request Nov 19, 2015
Make sure row_event happens before save_event
@roback roback merged commit a2f31a8 into master Nov 19, 2015
@roback roback deleted the event-order branch November 19, 2015 13:29
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.

Ensure that we handle "on_row_event" before "on_save_position"
2 participants