-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[No QA] Investigate workflow job failing on main: test / test (job 2) #69166
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ import PusherHelper from '../utils/PusherHelper'; | |
| import * as TestHelper from '../utils/TestHelper'; | ||
| import waitForBatchedUpdates from '../utils/waitForBatchedUpdates'; | ||
| import waitForBatchedUpdatesWithAct from '../utils/waitForBatchedUpdatesWithAct'; | ||
| import waitForNetworkPromises from '../utils/waitForNetworkPromises'; | ||
|
|
||
| // We need a large timeout here as we are lazy loading React Navigation screens and this test is running against the entire mounted App | ||
| jest.setTimeout(60000); | ||
|
|
@@ -319,7 +320,7 @@ describe('Pagination', () => { | |
| TestHelper.expectAPICommandToHaveBeenCalledWith('GetOlderActions', 0, {reportID: REPORT_ID, reportActionID: '4'}); | ||
| TestHelper.expectAPICommandToHaveBeenCalled('GetNewerActions', 0); | ||
|
|
||
| await waitForBatchedUpdatesWithAct(); | ||
| await waitForNetworkPromises(); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to use |
||
|
|
||
| // We now have 18 messages. 15 (MIN_INITIAL_REPORT_ACTION_COUNT) from the initial OpenReport and 3 from GetOlderActions. | ||
| // GetOlderActions only returns 3 actions since it reaches id '1', which is the created action. | ||
|
|
||
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.
Could you add a comment here to explain why this is needed in some future prs
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.
You mean by adding a code-comment or can comment directly here? @mountiny
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.
@lorretheboy Comment here
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 here