Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/messaging/messaging-api-request-internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { SendResponse, BatchResponse } from './messaging-api';


// FCM backend constants
const FIREBASE_MESSAGING_TIMEOUT = 10000;
const FIREBASE_MESSAGING_TIMEOUT = 15000;
const FIREBASE_MESSAGING_BATCH_URL = 'https://fcm.googleapis.com/batch';
const FIREBASE_MESSAGING_HTTP_METHOD: HttpMethod = 'POST';
const FIREBASE_MESSAGING_HEADERS = {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/messaging/messaging.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3538,7 +3538,7 @@ describe('Messaging', () => {
expect(httpsRequestStub).to.have.been.calledOnce.and.calledWith({
method: 'POST',
data: { message: expectedReq },
timeout: 10000,
timeout: 15000,
url: 'https://fcm.googleapis.com/v1/projects/project_id/messages:send',
headers: expectedHeaders,
});
Expand Down