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

Consider all running clocks when doing clock sync. #278

Merged
merged 1 commit into from
May 27, 2019
Merged

Conversation

brian-brazil
Copy link
Contributor

This is simpler, and avoids going out of sync.

Fix precision issue in isDisplayChange.

Fixes #191

Copy link
Contributor

@frank-weinberg frank-weinberg left a comment

Choose a reason for hiding this comment

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

This seems to sporadically fail the clockSync test. (Seen it once in 5-10 runs.)

}
// with respect to the running clocks.
ClockImpl masterClock = clocks.get(0);
long nowMs = masterClock.getTime() % 1000;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is hiding a class variable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, forgot to remove that.

Let me dig into that test. Things were test-order dependent previously, but this change should have fixed that in passing....

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've run all the tests for ~2.5 hours, with no failures.

This is simpler, and avoids going out of sync.

Fix precision issue in isDisplayChange.

Fixes #191
@frank-weinberg frank-weinberg merged commit e482c40 into dev May 27, 2019
@brian-brazil brian-brazil deleted the clock-sync branch May 29, 2019 09:53
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.

Clocks not synced if manually started/stopped
2 participants