[No QA] Change offline status when Pusher PINGPONG fails#57255
[No QA] Change offline status when Pusher PINGPONG fails#57255MonilBhavsar merged 7 commits intomainfrom
Conversation
|
I can't seem to get the Jest tests to pass, but I don't think it's related to any of my changes. @Pujan92 can you give this a review and see if you can spot any issues that might lead to the timeouts happening in the Jest tests? |
@tgolen It seems our changes only causing the timeout error for the tests. Without our changes, it gets succeeded immediately for ( |
|
Hm, OK. I'll need to take a closer look into this then. I don't understand how these changes could be affecting the tests, but maybe something needs to be mocked to keep it from thinking it's offline (I'm guessing that's why it's timing out). |
|
OK, I got the tests passing. |
|
@MonilBhavsar Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Bump for review please @MonilBhavsar |
Co-authored-by: Monil Bhavsar <monil@expensify.com>
Reviewer Checklist
Screenshots/Videos
Android: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/MonilBhavsar in version: 9.1.7-1 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.1.7-2 🚀
|


Explanation of Change
Now that the logs show more predictable behavior detecting when the PINGPONG fails, this PR changes the offline status depending on the PINGPONG failing or not.
Fixed Issues
$ #56180
Tests
PINGPONGOffline tests
Included in the above tests
QA Steps
There are no QA steps for this because there is no way to simulate the client not receiving a PONG event without taking down the servers.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop