Skip to content

Commit

Permalink
break lines
Browse files Browse the repository at this point in the history
  • Loading branch information
hannojg committed Dec 6, 2024
1 parent a97a7c1 commit a09de66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libs/E2E/utils/NetworkInterceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ export default function installNetworkInterceptor(
const headers = getFetchRequestHeadersAsObject(options);
const url = fetchArgsGetUrl(args);

// Don't process these specific API commands because running them over and over again in the tests increases the size of the notificationPreferences NVP on the server to an infinite size. This is due to the NVP storing this setting once for each user's device, and since the E2E tests use AWS device farm, the user ends up with thousands of different devices, unlike normal users that might only ever have about a dozen. We found the NVP was over 2.5mb in size and that slows down database replication.
// Don't process these specific API commands because running them over and over again in the tests increases the size of the notificationPreferences NVP on the server to an infinite size.
// This is due to the NVP storing this setting once for each user's device, and since the E2E tests use AWS device farm, the user ends up with thousands of different devices,
// unlike normal users that might only ever have about a dozen. We found the NVP was over 2.5mb in size and that slows down database replication.
if (url.includes('OptInToPushNotifications') || url.includes('OptOutOfPushNotifications')) {
console.debug('Skipping request to opt in or out of push notifications');
return Promise.resolve(new Response());
Expand Down

0 comments on commit a09de66

Please sign in to comment.