Skip to content

Commit fffe3ef

Browse files
Automated cherry pick of #9037 (#9038)
* attempt to fix base timeout error on fastlane for release build (#9037) (cherry picked from commit d00407c) * fix test on GlobalScheduledPostList --------- Co-authored-by: sabril <[email protected]>
1 parent 9291026 commit fffe3ef

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

app/screens/global_drafts/components/global_scheduled_post_list/index.test.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ jest.mock('./global_scheduled_post_list', () => ({
2323
default: jest.fn(),
2424
}));
2525

26+
jest.mock('react-native', () => ({
27+
...jest.requireActual('react-native'),
28+
DeviceEventEmitter: {
29+
emit: jest.fn(),
30+
},
31+
}));
32+
2633
jest.mocked(GlobalScheduledPostList).mockImplementation((props) => React.createElement('GlobalScheduledPostList', {...props, testID: 'global-scheduled-post-list'}));
2734

2835
describe('GlobalScheduledPostList', () => {
@@ -114,7 +121,9 @@ describe('GlobalScheduledPostList', () => {
114121
const globalScheduledPostList = getByTestId('global-scheduled-post-list');
115122
expect(globalScheduledPostList.props.tutorialWatched).toBe(false);
116123

117-
await storeGlobal(Tutorial.SCHEDULED_POSTS_LIST, 'true', false);
124+
await act(async () => {
125+
await storeGlobal(Tutorial.SCHEDULED_POSTS_LIST, 'true', false);
126+
});
118127

119128
await waitFor(() => {
120129
const updatedGlobalScheduledPostList = getByTestId('global-scheduled-post-list');

fastlane/.env.ios.release

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ AWS_REGION=us-east-1
77
BUILD_FOR_RELEASE=true
88
COLLECT_NETWORK_METRICS=false
99
EXTENSION_APP_IDENTIFIER=com.mattermost.rn.MattermostShare
10+
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT=120
11+
FASTLANE_XCODEBUILD_SETTINGS_RETRIES=6
1012
IOS_APP_GROUP=group.com.mattermost
1113
IOS_BUILD_EXPORT_METHOD=app-store
1214
IOS_ICLOUD_CONTAINER=iCloud.com.mattermost.rn

0 commit comments

Comments
 (0)