-
Notifications
You must be signed in to change notification settings - Fork 165
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
RCORE-2225 Loosen the FLX download progress test assertions to work with QBSv2 #7953
RCORE-2225 Loosen the FLX download progress test assertions to work with QBSv2 #7953
Conversation
329c1c6
to
7e20b9f
Compare
92148fa
to
6605c9e
Compare
Pull Request Test Coverage Report for Build thomas.goyne_493Details
💛 - Coveralls |
double expected_step = (1.0 - entries.front()) / (size - 1); | ||
for (size_t i = 1; i < size; ++i) { | ||
double expected_step = 1.0 / size; | ||
for (size_t i = 0; i < size; ++i) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we always assume that the first entry in the list is 0?
What if the progress notification was registered while the transfer has already been started and the first one or more progress items were missed?
(I am thinking of one of my planned test cases for the client reset progress notifications, where the download callback is registered while the fresh realm download is already in progress).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current tests all register the notification before doing anything which would produce notifications. Tests in the future which do something different will need different checks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM - thanks
c78df18
to
edc1174
Compare
edc1174
to
0857d0e
Compare
With QBSv2 the progress reported when a client reconnects after offline writes is progress through a history scan rather than download progress, so we can't make as strong of assertions about what the expected values are.
6605c9e
to
6f1cde2
Compare
0857d0e
to
80604f8
Compare
With QBSv2 the progress reported when a client reconnects after offline writes is progress through a history scan rather than download progress, so we can't make as strong of assertions about what the expected values are.