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

Fix polling mechanism issues #2286

Merged
merged 3 commits into from Aug 27, 2018
Merged

Fix polling mechanism issues #2286

merged 3 commits into from Aug 27, 2018

Conversation

kelsos
Copy link
Contributor

@kelsos kelsos commented Aug 27, 2018

Changes channel identification mechanism to include token_address along with channel_identifier
Add check for newChannel being null when checking for balance changes.

Closes #2282
Closes #2284

@coveralls
Copy link

coveralls commented Aug 27, 2018

Coverage Status

Coverage remained the same at 49.794% when pulling 1824b17 on kelsos:fix_channel_polling_error into 666e8c9 on raiden-network:master.

Copy link
Contributor

@andrevmatos andrevmatos left a comment

Choose a reason for hiding this comment

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

small typos, lgtm otherwise


it('should not throw if a channel is removed from the list', fakeAsync(() => {
raidenServiceSpy.and.returnValues(from([[channel1, channel2], [channel1]]));
const subcription = pollingService.channels().subscribe();
Copy link
Contributor

Choose a reason for hiding this comment

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

subscription


it('should not show a notification for the same identifier on different network', fakeAsync(() => {
raidenServiceSpy.and.returnValues(from([[channel1, channel1Network2], [channel1Network2]]));
const subcription = pollingService.channels().subscribe();
Copy link
Contributor

Choose a reason for hiding this comment

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

same

This would happen because the the polling mechanism only checked a channels identifier to determine unique channels.
@kelsos kelsos merged commit 9426dec into raiden-network:master Aug 27, 2018
@kelsos kelsos deleted the fix_channel_polling_error branch August 27, 2018 20:32
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.

None yet

3 participants