Skip to content

Commit

Permalink
fix(fcm): Increase batch send timeout to 15 seconds (#1999)
Browse files Browse the repository at this point in the history
Increase batch send timeout to 15 seconds
  • Loading branch information
lahirumaramba committed Dec 13, 2022
1 parent 1a34bc4 commit 2e41d9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/messaging/batch-request-internal.ts
Expand Up @@ -20,7 +20,7 @@ import {
import { FirebaseAppError, AppErrorCodes } from '../utils/error';

const PART_BOUNDARY = '__END_OF_PART__';
const TEN_SECONDS_IN_MILLIS = 10000;
const TEN_SECONDS_IN_MILLIS = 15000;

/**
* Represents a request that can be sent as part of an HTTP batch request.
Expand Down
2 changes: 1 addition & 1 deletion test/unit/messaging/batch-requests.spec.ts
Expand Up @@ -249,7 +249,7 @@ describe('BatchRequestClient', () => {
expect(args.url).to.equal(batchUrl);
expect(args.headers).to.have.property(
'Content-Type', 'multipart/mixed; boundary=__END_OF_PART__');
expect(args.timeout).to.equal(10000);
expect(args.timeout).to.equal(15000);
const parsedRequest = parseHttpRequest(args.data as Buffer);
expect(parsedRequest.multipart.length).to.equal(requests.length);

Expand Down

0 comments on commit 2e41d9e

Please sign in to comment.