Skip to content

Commit 2e41d9e

Browse files
fix(fcm): Increase batch send timeout to 15 seconds (#1999)
Increase batch send timeout to 15 seconds
1 parent 1a34bc4 commit 2e41d9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/messaging/batch-request-internal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
import { FirebaseAppError, AppErrorCodes } from '../utils/error';
2121

2222
const PART_BOUNDARY = '__END_OF_PART__';
23-
const TEN_SECONDS_IN_MILLIS = 10000;
23+
const TEN_SECONDS_IN_MILLIS = 15000;
2424

2525
/**
2626
* Represents a request that can be sent as part of an HTTP batch request.

test/unit/messaging/batch-requests.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ describe('BatchRequestClient', () => {
249249
expect(args.url).to.equal(batchUrl);
250250
expect(args.headers).to.have.property(
251251
'Content-Type', 'multipart/mixed; boundary=__END_OF_PART__');
252-
expect(args.timeout).to.equal(10000);
252+
expect(args.timeout).to.equal(15000);
253253
const parsedRequest = parseHttpRequest(args.data as Buffer);
254254
expect(parsedRequest.multipart.length).to.equal(requests.length);
255255

0 commit comments

Comments
 (0)