-
Notifications
You must be signed in to change notification settings - Fork 65
Fix wait service teardown race condition #1739
Fix wait service teardown race condition #1739
Conversation
src/modules/wait/wait.service.ts
Outdated
Needs to yield so that wait creation can finish | ||
before it is dismissed in the event of a race. | ||
*/ | ||
setTimeout(() => { |
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.
Possible to reference setTimeout
from SkyWindowRefService
, just for consistency?
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.
done :)
Codecov Report
@@ Coverage Diff @@
## master #1739 +/- ##
==========================================
+ Coverage 99.98% 99.98% +<.01%
==========================================
Files 410 410
Lines 8527 8530 +3
Branches 1251 1252 +1
==========================================
+ Hits 8526 8529 +3
Misses 1 1
Continue to review full report at Codecov.
|
@blackbaud-conorwright The unit tests are failing for this one. Also: Is it possible to create a unit test to confirm that the race condition is no longer happening? |
test added |
Resolves: #1276
Made the skywait service's pageWait teardown yield using a timeout so that the creation of the pagewait can complete before being torn down.