Fix flaky Measure and HTTPHelper specs
What does this Merge Request do?
This MR fixes some flaky tests by being more explicit with stubbing.
Merge Request checklist
-
Tests added for new functionality. If not, please raise Issue to follow-up. -
This change is backward compatible. If not, please include steps to communicate to our users. -
Documentation added/updated, if needed. -
gdk doctor
test added, if needed.